mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
use qt_safe_read() in QEventDispatcherUNIXPrivate::processThreadWakeUp()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d6cb1155b0
commit
2388f2452d
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ int QEventDispatcherUNIXPrivate::processThreadWakeUp(int nsel)
|
|||
// some other thread woke us up... consume the data on the thread pipe so that
|
||||
// select doesn't immediately return next time
|
||||
char c[16];
|
||||
while (QT_READ(thread_pipe[0], c, sizeof(c)) > 0)
|
||||
while (qt_safe_read(thread_pipe[0], c, sizeof(c)) > 0)
|
||||
;
|
||||
|
||||
if (!wakeUps.testAndSetRelease(1, 0)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue