blob: 912d7c97709a20a72f07df8e96cc38ebc50b19e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* $OpenBSD: _atomic_lock.c,v 1.6 2002/06/06 15:43:04 art Exp $ */
/*
* Atomi lock for alpha.
*/
#include "spinlock.h"
/* _atomic lock is implemented in assembler. */
int
_atomic_is_locked(volatile _spinlock_lock_t * lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
}
|