clear_wait - General: Clears the wait condition
void clear_wait(
thread_t thread,
int result,
boolean_t interrupt_only );
Specifies a pointer to the thread Specifies the outcome of
the wait. You can pass one of the following values: This
is a normal wakeup. The timeout period expired. The
clear_wait routine interrupted the wakeup. Specifies a
Boolean value that indicates how the clear_wait routine
clears the wait condition. You can pass one of the following
values: Clears the wait condition only if the kernel
thread is waiting in an interruptible state. Clears the
wait condition under any circumstances.
The clear_wait routine clears the wait condition for the
specified kernel thread and starts executing the kernel
thread, if appropriate. If the kernel thread is interruptible
and is still waiting for the event, clear_wait sets
the kernel thread state to TH_RUN and places it on the run
queue.
None
Routines: assert_wait_mesg(9r), mpsleep(9r),
thread_block(9r), thread_wakeup(9r), thread_wakeup_one(9r)
clear_wait(9r)
[ Back ] |