Subversion Repositories HelenOS

Rev

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

Rev 1787 Rev 1888
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup sync
29
/** @addtogroup sync
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef __SYNCH_H__
35
#ifndef KERN_SYNCH_H_
36
#define __SYNCH_H__
36
#define KERN_SYNCH_H_
37
 
37
 
38
#define SYNCH_NO_TIMEOUT    0   /**< Request with no timeout. */
38
#define SYNCH_NO_TIMEOUT    0   /**< Request with no timeout. */
39
 
39
 
40
#define SYNCH_FLAGS_NONE        0   /**< No flags specified. */
40
#define SYNCH_FLAGS_NONE        0   /**< No flags specified. */
41
#define SYNCH_FLAGS_NON_BLOCKING    (1<<0)  /**< Non-blocking operation request. */
41
#define SYNCH_FLAGS_NON_BLOCKING    (1<<0)  /**< Non-blocking operation request. */
Line 50... Line 50...
50
#define SYNCH_FAILED(rc)    ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED))
50
#define SYNCH_FAILED(rc)    ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED))
51
#define SYNCH_OK(rc)        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
51
#define SYNCH_OK(rc)        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
52
 
52
 
53
#endif
53
#endif
54
 
54
 
55
 /** @}
55
/** @}
56
 */
56
 */
57
 
-