waitq Struct Reference
[Synchronization]


Public Member Functions

 SPINLOCK_DECLARE (lock)

Data Fields

int missed_wakeups
link_t head

Detailed Description

Wait queue structure.

Definition at line 48 of file waitq.h.


Member Function Documentation

SPINLOCK_DECLARE lock   ) 
 

Lock protecting wait queue structure.

Must be acquired before T.lock for each T of type thread_t.


Field Documentation

link_t head
 

List of sleeping threads for wich there was no missed_wakeup.

Definition at line 57 of file waitq.h.

Referenced by _rwlock_read_lock_timeout(), _waitq_wakeup_unsafe(), let_others_in(), waitq_initialize(), and waitq_sleep_timeout_unsafe().

int missed_wakeups
 

Number of waitq_wakeup() calls that didn't find a thread to wake up.

Definition at line 56 of file waitq.h.

Referenced by _condvar_wait_timeout(), _waitq_wakeup_unsafe(), semaphore_initialize(), waitq_initialize(), and waitq_sleep_timeout_unsafe().


Generated on Sun Jun 18 17:40:08 2006 for HelenOS Kernel (sparc64) by  doxygen 1.4.6