interrupt() / notify() fix.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 3 Mar 2008 21:22:02 +0000 (22:22 +0100)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Mon, 3 Mar 2008 21:22:02 +0000 (22:22 +0100)
commit64fc2732147a66c889f7b3b5d349cb822b9b80c9
treefa8c3e32fee19af0b011f74633684211cd1ac7ea
parentb6db20add6f21377829026088f019f8b33889e7d
interrupt() / notify() fix.

* src/threads/native/lock.c (lock_record_wait, lock_record_notify):
Correctly handling the signaled and interrupted flags.

* src/threads/native/threads.c (threads_wait_with_timeout)
(threads_wait_with_timeout_relative): No return value, not touching flags.
(threads_check_if_interrupted_and_reset): Now locking the waitmutex.
(threads_sleep): Adapted to change.

* src/threads/native/threads.h (threads_wait_with_timeout_relative): No
return value.
src/threads/native/lock.c
src/threads/native/threads.c
src/threads/native/threads.h