Makes a single attempt to acquire the specified mutex.
#include <pthread.h> int pthread_mutex_trylock ( pthread_mutex_t *mutex);
(IN) Points to the mutex to acquire.
If successful in acquiring the mutex, returns 0. Otherwise, returns a nonzero error code.
Because this is a conditional acquisition, the hierarchy constraint for locks is relaxed for this acquisition. If the lock being acquired is not available (is held by a different thread), pthread_mutex_trylock makes no further attempt and returns EBUSY.