Changeset 05e2a7ad in mainline for generic/include/synch/waitq.h
- Timestamp:
- 2005-12-07T13:32:31Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 839470f
- Parents:
- 253f8590
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/synch/waitq.h
r253f8590 r05e2a7ad 39 39 #define WAKEUP_ALL 1 40 40 41 /** Wait queue structure. */ 41 42 struct waitq { 43 44 /** Lock protecting wait queue structure. 45 * 46 * Must be acquired before T.lock for each T of type thread_t. 47 */ 42 48 spinlock_t lock; 49 43 50 int missed_wakeups; /**< Number of waitq_wakeup() calls that didn't find a thread to wake up. */ 44 51 link_t head; /**< List of sleeping threads for wich there was no missed_wakeup. */ … … 52 59 extern void waitq_initialize(waitq_t *wq); 53 60 extern int waitq_sleep_timeout(waitq_t *wq, __u32 usec, int nonblocking); 54 extern void waitq_wakeup(waitq_t *wq, intall);55 extern void _waitq_wakeup_unsafe(waitq_t *wq, intall);61 extern void waitq_wakeup(waitq_t *wq, bool all); 62 extern void _waitq_wakeup_unsafe(waitq_t *wq, bool all); 56 63 57 64 #endif
Note:
See TracChangeset
for help on using the changeset viewer.