1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/posix/pthread/include/pthread_spin.h
2014-02-19 23:39:38 +01:00

18 lines
570 B
C

/* Functions to handle spinlocks. */
/* Initialize the spinlock LOCK. If PSHARED is nonzero the spinlock can
be shared between different processes. */
int pthread_spin_init(pthread_spinlock_t *lock, int pshared);
/* Destroy the spinlock LOCK. */
int pthread_spin_destroy(pthread_spinlock_t *lock);
/* Wait until spinlock LOCK is retrieved. */
int pthread_spin_lock(pthread_spinlock_t *lock);
/* Try to lock spinlock LOCK. */
int pthread_spin_trylock(pthread_spinlock_t *lock);
/* Release spinlock LOCK. */
int pthread_spin_unlock(pthread_spinlock_t *lock);