Locks a mutual exclusion lock if it is currently unlocked.
#include "ive_standards.h"
#include "ive_thread.h"
int IVEThreadTryAcquireMutex(IVEThreadMutex* p_mutex);
There is no Fortran interface.
If *p_mutex could be locked, the function returns true and the caller should release the lock with IVEThreadReleaseMutex when it no longer needs to hold the mutex. If *p_mutex could not be locked because it was already locked, the function returns false.
Inclusion of ive_standards.h sets certain feature-set macros. It is safest to include it before any other headers to avoid inconsistent definitions.
IVEThreadInitMutex, IVEThreadDestroyMutex, IVEThreadAcquireMutex, IVEThreadReleaseMutex, and IVEThreadMutex
| categories | alphabetical |
modified June 30, 2001
Eric Branlund (eric@msg.ucsf.edu)