]> rtime.felk.cvut.cz Git - vajnamar/orte.git/commit
SHAPE: Fix undefined behavior resulting in strange lock-ups
authorMartin Vajnar <martin@pracovni-debian>
Sun, 24 May 2015 09:56:24 +0000 (11:56 +0200)
committerMartin Vajnar <martin@pracovni-debian>
Sun, 24 May 2015 11:05:41 +0000 (13:05 +0200)
commit8d0189479901f368da04466c559085ecc9939804
tree6db70bc12d8d568f7ae54a27e817d8ec089c9b85
parent4979c1fc9237082342965d9074b0b1a1d23ba022
SHAPE: Fix undefined behavior resulting in strange lock-ups

This commit fixes intermittent freezes of 'subscriber' dialog. These freezes
were caused by invoking QWidget::update() directly from a non-GUI thread.
This is undefined behavior and leads to many strange lock-ups and even SEGFAULTS.

In order to fix it we use QMetaObject::invokeMethod(), which is thread-safe.
orte/contrib/shape/MyQFrame.cpp