Changes in kernel/generic/include/synch/waitq.h [597fa24:111b9b9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/waitq.h
r597fa24 r111b9b9 40 40 #include <abi/synch.h> 41 41 #include <adt/list.h> 42 43 #define WAITQ_INITIALIZER_WITH_COUNT(name, count) (waitq_t) { \44 .lock = IRQ_SPINLOCK_INITIALIZER(#name ".lock"), \45 .sleepers = LIST_INITIALIZER((name).sleepers), \46 .wakeup_balance = (count), \47 }48 49 #define WAITQ_INITIALIZER(name) WAITQ_INITIALIZER_WITH_COUNT(name, 0)50 51 #define WAITQ_INITIALIZE_WITH_COUNT(name, count) \52 waitq_t name = WAITQ_INITIALIZER_WITH_COUNT(name, count)53 54 #define WAITQ_INITIALIZE(name) \55 waitq_t name = WAITQ_INITIALIZER(name)56 42 57 43 /** Wait queue structure.
Note:
See TracChangeset
for help on using the changeset viewer.