*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> thread_set_timeout (9r)              



NAME    [Toc]    [Back]

       thread_set_timeout - General: Sets a timer for the current
       kernel thread

SYNOPSIS    [Toc]    [Back]

       void thread_set_timeout(
               int timeout_interval );

ARGUMENTS    [Toc]    [Back]

       Specfies the amount of time to wait for an event. The time
       is used in conjunction with the assert_wait routine.

DESCRIPTION    [Toc]    [Back]

       The  thread_set_timeout routine must be called as follows:
       Lock the resource.  Call assert_wait_mesg to  assert  that
       the  current  kernel thread is about to block.  Unlock the
       resource.  Call thread_set_timeout  to  set  the  time  of
       delay for the current kernel thread.  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    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

       Routines:     assert_wait_mesg(9r),    current_thread(9r),

[ Back ]
 Similar pages
Name OS Title
mpsleep Tru64 General: Blocks the current kernel thread
select_enqueue Tru64 General: Adds the current kernel thread
thread_block Tru64 General: Blocks (puts to sleep) the current kernel thread
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
select_wakeup Tru64 General: Wakes up a kernel thread
current_thread Tru64 General: Is a pointer to the currently running kernel thread
unix_release Tru64 General: Releases binding of the kernel thread
thread_wakeup_one Tru64 General: Wakes up the first kernel thread waiting on a channel
select_dequeue Tru64 General: Removes the last kernel thread waiting for an event
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service