1/* 2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _SYSTEM_USER_MUTEX_DEFS_H 6#define _SYSTEM_USER_MUTEX_DEFS_H 7 8 9// flags passed to _kern_mutex_{un}block 10// (same uint32 also used for B_TIMEOUT, etc.) 11#define B_USER_MUTEX_SHARED 0x40000000 12 // Mutex is in shared memory. 13#define B_USER_MUTEX_UNBLOCK_ALL 0x80000000 14 // All threads currently waiting on the mutex will be unblocked. The mutex 15 // state will be locked. 16 17 18// mutex value flags 19#define B_USER_MUTEX_LOCKED 0x01 20#define B_USER_MUTEX_WAITING 0x02 21#define B_USER_MUTEX_DISABLED 0x04 22 23 24#endif /* _SYSTEM_USER_MUTEX_DEFS_H */ 25