SYNOPSIS
#include <pthread.h>
int pthread_spin_lock(pthread_spinlock_t *lock);
int pthread_spin_trylock(pthread_spinlock_t *lock);
DESCRIPTION
The
The
PARAMETERS
RETURN VALUES
On success, these functions return 0. On failure, they return one of the following error values:
- EBUSY
-
A thread currently holds the lock.
- EDEADLK
-
The calling thread already holds the lock.
- EINVAL
-
The value pointed to by lock does not refer to an initialized spin lock object.
CONFORMANCE
UNIX 03.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
pthread_spin_destroy() ,pthread_spin_unlock()
PTC MKS Toolkit 10.5 Documentation Build 40.