mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
Changes to support building on solaris, irix, and darwin. Also
removed test for working fork (AC_FORK).
This commit is contained in:
@@ -548,8 +548,12 @@ CThreadRep::threadSignalHandler(void* vrep)
|
||||
// we exit the loop via thread cancellation in sigwait()
|
||||
for (;;) {
|
||||
// wait
|
||||
#if HAVE_POSIX_SIGWAIT
|
||||
int signal;
|
||||
sigwait(&sigset, &signal);
|
||||
#else
|
||||
sigwait(&sigset);
|
||||
#endif
|
||||
|
||||
// if we get here then the signal was raised. cancel the thread.
|
||||
mainThreadRep->cancel();
|
||||
|
||||
Reference in New Issue
Block a user