Multithreaded Programming Guide

mutex_trylock Return Values

mutex_trylock() returns 0 if successful. When any of the following conditions is detected, mutex_trylock() fails and returns the corresponding value.


EFAULT

Description:

mp points to an illegal address.


EBUSY

Description:

The system detected an attempt to reinitialize an active mutex.