Subversion Repositories HelenOS-historic

Rev

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

Rev 1156 Rev 1502
Line 28... Line 28...
28
 
28
 
29
#ifndef __SYNCH_H__
29
#ifndef __SYNCH_H__
30
#define __SYNCH_H__
30
#define __SYNCH_H__
31
 
31
 
32
#define SYNCH_NO_TIMEOUT    0   /**< Request with no timeout. */
32
#define SYNCH_NO_TIMEOUT    0   /**< Request with no timeout. */
-
 
33
 
33
#define SYNCH_BLOCKING      0   /**< Blocking operation request. */
34
#define SYNCH_FLAGS_NONE        0   /**< No flags specified. */
34
#define SYNCH_NON_BLOCKING  1   /**< Non-blocking operation request. */
35
#define SYNCH_FLAGS_NON_BLOCKING    (1<<0)  /**< Non-blocking operation request. */
-
 
36
#define SYNCH_FLAGS_INTERRUPTIBLE   (1<<1)  /**< Interruptible operation. */
35
 
37
 
36
#define ESYNCH_WOULD_BLOCK  1   /**< Could not satisfy the request without going to sleep. */
38
#define ESYNCH_WOULD_BLOCK  1   /**< Could not satisfy the request without going to sleep. */
37
#define ESYNCH_TIMEOUT      2   /**< Timeout occurred. */
39
#define ESYNCH_TIMEOUT      2   /**< Timeout occurred. */
38
#define ESYNCH_INTERRUPTED  4   /**< Sleep was interrupted. */
40
#define ESYNCH_INTERRUPTED  4   /**< Sleep was interrupted. */
39
#define ESYNCH_OK_ATOMIC    8   /**< Operation succeeded without sleeping. */
41
#define ESYNCH_OK_ATOMIC    8   /**< Operation succeeded without sleeping. */