![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX Spin Locks option group. More...
Functions | |
| int | pthread_spin_destroy (pthread_spinlock_t *lock) |
| Destroy a spin lock. | |
| int | pthread_spin_init (pthread_spinlock_t *lock, int pshared) |
| Initialise a spin lock. | |
| int | pthread_spin_lock (pthread_spinlock_t *lock) |
| Acquire a spin lock, busy-waiting until available. | |
| int | pthread_spin_trylock (pthread_spinlock_t *lock) |
| Try to acquire a spin lock without busy-waiting. | |
| int | pthread_spin_unlock (pthread_spinlock_t *lock) |
| Release a spin lock. | |
POSIX Spin Locks option group.
| int pthread_spin_destroy | ( | pthread_spinlock_t * | lock | ) |
Destroy a spin lock.
| lock | Spin lock to destroy. |
| int pthread_spin_init | ( | pthread_spinlock_t * | lock, |
| int | pshared | ||
| ) |
Initialise a spin lock.
| lock | Spin lock to initialise. |
| pshared | PTHREAD_PROCESS_SHARED or PTHREAD_PROCESS_PRIVATE. |
| int pthread_spin_lock | ( | pthread_spinlock_t * | lock | ) |
Acquire a spin lock, busy-waiting until available.
| lock | Spin lock to acquire. |
| int pthread_spin_trylock | ( | pthread_spinlock_t * | lock | ) |
Try to acquire a spin lock without busy-waiting.
| lock | Spin lock to try. |
EBUSY if already locked, or a positive error number on failure. | int pthread_spin_unlock | ( | pthread_spinlock_t * | lock | ) |
Release a spin lock.
| lock | Spin lock to release. |