Locks a mutex.
a0tError | a0LockMutex( | | | |
| | a0tMutex | *mutex );
| |
| Name | rd/wr | Description |
| mutex | write | Mutex descriptor to lock. |
This routine locks the mutex pointed by mutex, if it is unlocked. If the mutex is already locked, the thread blocks until it be unlocked and lock it.
| Error Code | Description |
A0ErrInvMutex | The mutex descriptor is invalid. | |
A0ErrLockedMutex | Locking this mutex causes a deadlock. | |
A0ErrOk| Successful completion. | |
a0NewMutex() a0DisposeMutex() a0UnlockMutex()