Lines Matching defs:spinlock
17 // WARNING: For Haiku debugging only! This changes the spinlock type in a
28 } spinlock;
31 # define B_INITIALIZE_SPINLOCK(spinlock) do { \
32 (spinlock)->lock = 0; \
33 (spinlock)->failed_try_acquire = 0; \
34 (spinlock)->total_wait = 0; \
35 (spinlock)->total_held = 0; \
36 (spinlock)->last_acquired = 0; \
41 } spinlock;
44 # define B_INITIALIZE_SPINLOCK(spinlock) do { \
45 (spinlock)->lock = 0; \
49 #define B_SPINLOCK_IS_LOCKED(spinlock) (atomic_get(&(spinlock)->lock) > 0)
61 spinlock lock;
151 /* interrupts, spinlock, and timers */
155 extern void acquire_spinlock(spinlock *lock);
156 extern void release_spinlock(spinlock *lock);