summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_yield.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-07-17 22:52:55 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-07-17 22:52:55 +0000
commit97d2d9dfed7fc1f9fa26e38c42c4de810d167012 (patch)
tree5e3b89a9cdd74d4cc57a7d15afad9a3373552ecb /lib/libpthread/thread/thr_yield.c
parentfd1c90fb6f321674f766c628fd63fa44b304fc91 (diff)
downloadFreeBSD-src-97d2d9dfed7fc1f9fa26e38c42c4de810d167012.zip
FreeBSD-src-97d2d9dfed7fc1f9fa26e38c42c4de810d167012.tar.gz
Fix sigwait to conform to POSIX.
When a signal is being delivered to process, first find a sigwait thread to deliver, POSIX's argument is speed of delivering signal to sigwait thread is faster than other ways. A signal in its wait set will cause sigwait to return the signal number, a signal not in its wait set but in not blocked by the thread also causes sigwait to return, but sigwait returns EINTR, sigwait is oneshot operation, only one signal can be delivered to its wait set, when a signal is delivered to the sigwait thread, the thread's sigwait state is canceled.
Diffstat (limited to 'lib/libpthread/thread/thr_yield.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud