OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cb115
)
use qt_safe_read() in QEventDispatcherUNIXPrivate::processThreadWakeUp()
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 15 Feb 2021 00:09:50 +0000
(
02:09
+0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Mon, 15 Feb 2021 00:09:50 +0000
(
02:09
+0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/kernel/qeventdispatcher_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/kernel/qeventdispatcher_unix.cpp
b/src/core/kernel/qeventdispatcher_unix.cpp
index
f373842
..
d2b1d8f
100644
(file)
--- a/
src/core/kernel/qeventdispatcher_unix.cpp
+++ b/
src/core/kernel/qeventdispatcher_unix.cpp
@@
-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)) {