version 1.31, 2008/04/28 20:23:36 |
version 1.32, 2017/09/17 00:01:08 |
Line 72 extern void __cpu_simple_lock(__cpu_simp |
|
Line 72 extern void __cpu_simple_lock(__cpu_simp |
|
#endif |
#endif |
|
|
static __inline int |
static __inline int |
__SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr) |
__SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *__ptr) |
{ |
{ |
return *__ptr == __SIMPLELOCK_LOCKED; |
return *__ptr == __SIMPLELOCK_LOCKED; |
} |
} |
|
|
static __inline int |
static __inline int |
__SIMPLELOCK_UNLOCKED_P(__cpu_simple_lock_t *__ptr) |
__SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *__ptr) |
{ |
{ |
return *__ptr == __SIMPLELOCK_UNLOCKED; |
return *__ptr == __SIMPLELOCK_UNLOCKED; |
} |
} |