Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 1502 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 1156
Line 33... Line 33...
33
#define SYNCH_BLOCKING      0   /**< Blocking operation request. */
33
#define SYNCH_BLOCKING      0   /**< Blocking operation request. */
34
#define SYNCH_NON_BLOCKING  1   /**< Non-blocking operation request. */
34
#define SYNCH_NON_BLOCKING  1   /**< Non-blocking operation request. */
35
 
35
 
36
#define ESYNCH_WOULD_BLOCK  1   /**< Could not satisfy the request without going to sleep. */
36
#define ESYNCH_WOULD_BLOCK  1   /**< Could not satisfy the request without going to sleep. */
37
#define ESYNCH_TIMEOUT      2   /**< Timeout occurred. */
37
#define ESYNCH_TIMEOUT      2   /**< Timeout occurred. */
-
 
38
#define ESYNCH_INTERRUPTED  4   /**< Sleep was interrupted. */
38
#define ESYNCH_OK_ATOMIC    4   /**< Operation succeeded without sleeping. */
39
#define ESYNCH_OK_ATOMIC    8   /**< Operation succeeded without sleeping. */
39
#define ESYNCH_OK_BLOCKED   8   /**< Operation succeeded and did sleep. */
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
#define SYNCH_OK(rc)        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
43
#define SYNCH_OK(rc)        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
43
 
44
 
44
#endif
45
#endif