summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/sparc/_atomic_lock.c
blob: 31636328f937d6955de9bc5a06ef73db7e75fa96 (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.3 1998/12/21 07:37:01 d Exp $	*/
/*
 * Atomic lock for sparc
 */
 
#include "spinlock.h"

register_t
_atomic_lock(volatile register_t * lock)
{
	return _thread_slow_atomic_lock(lock);
}

int
_atomic_is_locked(volatile register_t * lock)
{
	
	return _thread_slow_atomic_is_locked(lock);
}