GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed deadlocks in pthread_pause
[mirrors/Programs.git]
/
c
/
pthread_extra
/
pthread_pause.c
diff --git
a/c/pthread_extra/pthread_pause.c
b/c/pthread_extra/pthread_pause.c
index 662d78fdd99a949e041a15c093f862c01d1f5a5d..6df2e3a83c5f51bedecc93b2cde41ed615d3bc08 100644
(file)
--- a/
c/pthread_extra/pthread_pause.c
+++ b/
c/pthread_extra/pthread_pause.c
@@
-19,7
+19,7
@@
void pthread_pause_handler() {
sigset_t sigset;
sigfillset(&sigset);
sigdelset(&sigset, PTHREAD_XSIG_STOP);
-
while
(!pthread_user_data_internal(pthread_self())->running) {
+
if
(!pthread_user_data_internal(pthread_self())->running) {
sigsuspend(&sigset);
}
}
This page took
0.180639 seconds
and
4
git commands to generate.