a0UnlockMutex()

Unlocks a mutex.


Syntax

a0tError a0UnlockMutex(
a0tMutex *mutex );

Arguments

Namerd/wrDescription
mutex write Mutex descriptor to unlock.

Description

This routine unlocks the mutex pointed by mutex. If is there any blocked thread waiting to lock this mutex, one is unblocked.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0ErrInvMutex The mutex descriptor is invalid.
A0ErrOkSuccessful completion.

See Also

a0NewMutex() a0DisposeMutex() a0LockMutex()