Changeset 203f4c3 in mainline for generic/include/synch
- Timestamp:
- 2006-04-09T14:14:49Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 016acbe
- Parents:
- fe04594
- Location:
- generic/include/synch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/synch/synch.h
rfe04594 r203f4c3 36 36 #define ESYNCH_WOULD_BLOCK 1 /**< Could not satisfy the request without going to sleep. */ 37 37 #define ESYNCH_TIMEOUT 2 /**< Timeout occurred. */ 38 #define ESYNCH_OK_ATOMIC 4 /**< Operation succeeded without sleeping. */ 39 #define ESYNCH_OK_BLOCKED 8 /**< Operation succeeded and did sleep. */ 38 #define ESYNCH_INTERRUPTED 4 /**< Sleep was interrupted. */ 39 #define ESYNCH_OK_ATOMIC 8 /**< Operation succeeded without sleeping. */ 40 #define ESYNCH_OK_BLOCKED 16 /**< Operation succeeded and did sleep. */ 40 41 41 #define SYNCH_FAILED(rc) ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT ))42 #define SYNCH_FAILED(rc) ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED)) 42 43 #define SYNCH_OK(rc) ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED)) 43 44 -
generic/include/synch/waitq.h
rfe04594 r203f4c3 55 55 waitq_sleep_timeout((wq),SYNCH_NO_TIMEOUT,SYNCH_BLOCKING) 56 56 57 extern void waitq_interrupted_sleep(void *data);58 59 57 extern void waitq_initialize(waitq_t *wq); 60 58 extern int waitq_sleep_timeout(waitq_t *wq, __u32 usec, int nonblocking); 61 59 extern void waitq_wakeup(waitq_t *wq, bool all); 62 60 extern void _waitq_wakeup_unsafe(waitq_t *wq, bool all); 61 extern void waitq_interrupt_sleep(thread_t *t); 63 62 64 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
