aboutsummaryrefslogtreecommitdiff
path: root/src/common/mythread.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-01-07 18:41:15 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-01-07 18:41:15 +0200
commit8286a60b8f4bd5accfbc9d229d2204bac31994f2 (patch)
tree59ba88478c0fdb45578badc84ebf7c2b5746b2ed /src/common/mythread.h
parentBumped version to 4.999.8beta right after the release (diff)
downloadxz-8286a60b8f4bd5accfbc9d229d2204bac31994f2.tar.xz
Use pthread_sigmask() instead of sigprocmask() when pthreads
are enabled.
Diffstat (limited to 'src/common/mythread.h')
-rw-r--r--src/common/mythread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index cd9ae89a..ee8a341d 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -20,6 +20,9 @@
pthread_once(&once_, &func); \
} while (0)
+# define mythread_sigmask(how, set, oset) \
+ pthread_sigmask(how, set, oset)
+
#else
# define mythread_once(func) \
@@ -31,4 +34,7 @@
} \
} while (0)
+# define mythread_sigmask(how, set, oset) \
+ sigprocmask(how, set, oset)
+
#endif