diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-02-24 11:33:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-02-24 11:33:15 +0000 |
commit | c9a76075f591015ebd55fa831bc07067b79ef26c (patch) | |
tree | 07bcb2ae32b1f77b175a510e1acd5c988df1aa8c /include | |
parent | ffde6695dafe9b4c5c652f6c8b6624e844900448 (diff) | |
download | cygnal-c9a76075f591015ebd55fa831bc07067b79ef26c.tar.gz cygnal-c9a76075f591015ebd55fa831bc07067b79ef26c.tar.bz2 cygnal-c9a76075f591015ebd55fa831bc07067b79ef26c.zip |
* thread.cc (pthread::cancelable_wait): Rearrange slightly.
Add do_sig_wait parameter. Wait for signal_arrived if set to true.
Return WAIT_SIGNALED if signal arrived.
(pthread_cond::wait): Accomodate change to pthread::cancelable_wait.
(pthread::join): Ditto.
(semaphore::_timedwait): Ditto.
(semaphore::_wait): Ditto. Change to return int to allow status
feedback.
(semaphore::wait): Return return value from semaphore::_wait.
* thread.h (WAIT_SIGNALED): New definition.
(pthread::cancelable_wait): Change declaration. Define do_sig_wait
as false by default to not interfere with existing calls accidentally.
(semaphore::_wait): Declare int.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions