blob: a6ca8e7f71f9f3d148cbaf67589de73b49d2dfc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $OpenBSD: _atomic_lock.c,v 1.1 1999/03/03 06:00:10 smurph Exp $ */
/*
* Atomic lock for m68k
*/
#include "spinlock.h"
int
_atomic_lock(volatile _spinlock_lock_t *lock)
{
return (_thread_slow_atomic_lock(lock));
}
int
_atomic_is_locked(volatile _spinlock_lock_t *lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
}
|