 |
Index for Section 9r |
|
 |
Alphabetical listing for T |
|
 |
Bottom of page |
|
thread_set_timeout(9r)
NAME
thread_set_timeout - General: Sets a timer for the current kernel thread
SYNOPSIS
void thread_set_timeout(
int timeout_interval );
ARGUMENTS
timeout_interval
Specfies the amount of time to wait for an event. The time is used in
conjunction with the assert_wait routine.
DESCRIPTION
The thread_set_timeout routine must be called as follows:
1. Lock the resource.
2. Call assert_wait_mesg to assert that the current kernel thread is
about to block.
3. Unlock the resource.
4. Call thread_set_timeout to set the time of delay for the current
kernel thread.
5. Call thread_block to block (put to sleep) the current kernel thread.
The time you specify to wait for the event is automatically canceled when
the kernel thread awakes.
RETURN VALUES
None
SEE ALSO
Routines: assert_wait_mesg(9r), current_thread(9r), thread_block(9r)
 |
Index for Section 9r |
|
 |
Alphabetical listing for T |
|
 |
Top of page |
|