summaryrefslogtreecommitdiff
path: root/lib/libc_r/arch/sparc/_atomic_lock.c
blob: 6415e25c9125352af1492f198d7af9d65e1cab9d (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.4 1998/12/21 13:03:45 d Exp $	*/
/*
 * Atomic lock for sparc
 */
 
#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 _thread_slow_atomic_is_locked(lock);
}