nlMutexLock, nlMutexUnlock

lock or unlock a mutex

C Specification

NLboolean nlMutexLock(NLmutex *mutex)

NLboolean nlMutexUnlock(NLmutex *mutex)



[in]The mutex to lock or unlock.


nlMutexLock locks the mutex. If the mutex is already locked, then nlMutexLock will block until the mutex is unlocked.

nlMutexUnlock unlocks the mutex.

Return values

NL_TRUE if no error occurs, otherwise NL_FALSE, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_NULL_POINTER : A NULL pointer was passed to this function.
NL_SYSTEM_ERROR : A system error has ocurred. The system error can be retrieved by calling nlGetSystemError.

See also


Back to the HawkNL index page

Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!