Makes a single attempt to acquire the specified mutex.
#include <synch.h> int mutex_trylock ( mutex_t *mp );
(IN) Points to the mutex to acquire.
If successful in acquiring the mutex, returns 0; otherwise returns -1.
If the lock being acquired is not available (is held by a different thread), mutex_trylock returns immediately.