Changeset 925a21e in mainline for abi/include/synch.h
- Timestamp:
- 2011-09-24T14:20:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bf76c1
- Parents:
- 867e2555 (diff), 1ab4aca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
abi/include/synch.h
r867e2555 r925a21e 33 33 */ 34 34 35 #ifndef KERN_SYNCH_H_36 #define KERN_SYNCH_H_35 #ifndef ABI_SYNCH_H_ 36 #define ABI_SYNCH_H_ 37 37 38 38 /** Request with no timeout. */ 39 #define SYNCH_NO_TIMEOUT 39 #define SYNCH_NO_TIMEOUT 0 40 40 41 41 /** No flags specified. */ 42 #define SYNCH_FLAGS_NONE 42 #define SYNCH_FLAGS_NONE 0 43 43 /** Non-blocking operation request. */ 44 #define SYNCH_FLAGS_NON_BLOCKING 44 #define SYNCH_FLAGS_NON_BLOCKING (1 << 0) 45 45 /** Interruptible operation. */ 46 #define SYNCH_FLAGS_INTERRUPTIBLE 46 #define SYNCH_FLAGS_INTERRUPTIBLE (1 << 1) 47 47 48 48 /** Could not satisfy the request without going to sleep. */ 49 #define ESYNCH_WOULD_BLOCK 49 #define ESYNCH_WOULD_BLOCK 1 50 50 /** Timeout occurred. */ 51 #define ESYNCH_TIMEOUT 51 #define ESYNCH_TIMEOUT 2 52 52 /** Sleep was interrupted. */ 53 #define ESYNCH_INTERRUPTED 53 #define ESYNCH_INTERRUPTED 4 54 54 /** Operation succeeded without sleeping. */ 55 #define ESYNCH_OK_ATOMIC 55 #define ESYNCH_OK_ATOMIC 8 56 56 /** Operation succeeded and did sleep. */ 57 #define ESYNCH_OK_BLOCKED 57 #define ESYNCH_OK_BLOCKED 16 58 58 59 59 #define SYNCH_FAILED(rc) \ 60 60 ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED)) 61 61 62 #define SYNCH_OK(rc) \ 62 63 ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
Note:
See TracChangeset
for help on using the changeset viewer.