projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5fe9e
)
Fixed return check in SwitchToThread
author
Armin Novak
<armin.novak@thincast.com>
Fri, 18 Jan 2019 12:02:30 +0000
(13:02 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 18 Jan 2019 12:02:30 +0000
(13:02 +0100)
Patch on mailing list by Andrey Vasilkin
winpr/libwinpr/thread/thread.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/thread/thread.c
b/winpr/libwinpr/thread/thread.c
index
c65bba4
..
404db8f
100644
(file)
--- a/
winpr/libwinpr/thread/thread.c
+++ b/
winpr/libwinpr/thread/thread.c
@@
-735,7
+735,7
@@
BOOL SwitchToThread(VOID)
* Note: on some operating systems sched_yield is a stub returning -1.
* usleep should at least trigger a context switch if any thread is waiting.
*/
- if (
!sched_yield()
)
+ if (
sched_yield() != 0
)
usleep(1);
return TRUE;