pthread_spin_unlock()

unlock a spin lock object 

Advanced Realtime


SYNOPSIS

#include <pthread.h>

int pthread_spin_unlock(pthread_spinlock_t *lock);


DESCRIPTION

The pthread_spin_unlock() function releases the spin lock pointed to by the lock argument which was locked via the pthread_spin_lock() or pthread_spin_trylock() functions.


PARAMETERS

lock 

Points to a spin lock.


RETURN VALUES

On success, the pthread_spin_unlock() returns 0. On failure, it returns one of the following error numbers:

EINVAL 

An invalid argument was specified.

EPERM 

The calling thread does not hold the lock.

This function shall not return an error code of EINTR.


EXAMPLES

None.


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_lock()


PTC MKS Toolkit 10.5 Documentation Build 40.