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:
4658675
)
replace std::this_thread::yield() with sched_yield() in QThread::yieldCurrentThread()
author
Ivailo Monev
<xakepa10@gmail.com>
Wed, 20 Jan 2021 22:26:56 +0000
(
00:26
+0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Wed, 20 Jan 2021 22:26:56 +0000
(
00:26
+0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/thread/qthread_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/thread/qthread_unix.cpp
b/src/core/thread/qthread_unix.cpp
index
8935edc
..
11542f0
100644
(file)
--- a/
src/core/thread/qthread_unix.cpp
+++ b/
src/core/thread/qthread_unix.cpp
@@
-264,7
+264,7
@@
int QThread::idealThreadCount()
void QThread::yieldCurrentThread()
{
- s
td::this_thread::
yield();
+ s
ched_
yield();
}
void QThread::sleep(unsigned long secs)