Multithreaded Programming Guide

pthread_spin_lock() Return Values

Upon successful completion, the pthread_spin_lock() function returns 0. Otherwise, one of the following error codes is returned.


EDEADLK

Description:

The current thread already owns the spin lock.


EINVAL

Description:

The value specified by lock does not refer to an initialized spin lock object.