Changes in kernel/generic/include/synch/waitq.h [b7398c0:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/waitq.h
rb7398c0 rd99c1d2 46 46 } wakeup_mode_t; 47 47 48 /** Wait queue structure. 49 * 50 */ 48 /** Wait queue structure. */ 51 49 typedef struct { 50 52 51 /** Lock protecting wait queue structure. 53 52 * 54 53 * Must be acquired before T.lock for each T of type thread_t. 55 54 */ 56 IRQ_SPINLOCK_DECLARE(lock);57 55 SPINLOCK_DECLARE(lock); 56 58 57 /** 59 58 * Number of waitq_wakeup() calls that didn't find a thread to wake up. 60 *61 59 */ 62 60 int missed_wakeups; 63 64 61 /** List of sleeping threads for wich there was no missed_wakeup. */ 65 62 link_t head; … … 72 69 73 70 extern void waitq_initialize(waitq_t *); 74 extern int waitq_sleep_timeout(waitq_t *, uint32_t, unsignedint);71 extern int waitq_sleep_timeout(waitq_t *, uint32_t, int); 75 72 extern ipl_t waitq_sleep_prepare(waitq_t *); 76 extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, unsignedint);73 extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, int); 77 74 extern void waitq_sleep_finish(waitq_t *, int, ipl_t); 78 75 extern void waitq_wakeup(waitq_t *, wakeup_mode_t); … … 80 77 extern void waitq_interrupt_sleep(struct thread *); 81 78 extern void waitq_unsleep(waitq_t *); 82 extern int waitq_count_get(waitq_t *);83 extern void waitq_count_set(waitq_t *, int val);84 79 85 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.