Changeset da1bafb in mainline for kernel/generic/include/synch/waitq.h
- Timestamp:
- 2010-05-24T18:57:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0095368
- Parents:
- 666f492
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/waitq.h
r666f492 rda1bafb 46 46 } wakeup_mode_t; 47 47 48 /** Wait queue structure. */ 48 /** Wait queue structure. 49 * 50 */ 49 51 typedef struct { 50 51 52 /** Lock protecting wait queue structure. 52 53 * 53 54 * Must be acquired before T.lock for each T of type thread_t. 54 55 */ 55 SPINLOCK_DECLARE(lock);56 56 IRQ_SPINLOCK_DECLARE(lock); 57 57 58 /** 58 59 * Number of waitq_wakeup() calls that didn't find a thread to wake up. 60 * 59 61 */ 60 62 int missed_wakeups; 63 61 64 /** List of sleeping threads for wich there was no missed_wakeup. */ 62 65 link_t head; … … 69 72 70 73 extern void waitq_initialize(waitq_t *); 71 extern int waitq_sleep_timeout(waitq_t *, uint32_t, int);74 extern int waitq_sleep_timeout(waitq_t *, uint32_t, unsigned int); 72 75 extern ipl_t waitq_sleep_prepare(waitq_t *); 73 extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, int);76 extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, unsigned int); 74 77 extern void waitq_sleep_finish(waitq_t *, int, ipl_t); 75 78 extern void waitq_wakeup(waitq_t *, wakeup_mode_t);
Note:
See TracChangeset
for help on using the changeset viewer.