-
ploc_mtx
-
ER ploc_mtx (ID mtxid);
|
|
|
|
ID mtxid;
|
ID number of the mutex to be locked.
|
This service call locks the mutex specified by parameter
mtxid.
If the target mutex could not be locked (another task has been locked) when this service call is issued but E_TMOUT is returned.
Note In the RI850V4, E_ILUSE is returned if this service call is re-issued for the mutex that has been locked by the invoking task (multiple-locking of mutex).
|
|
|
|
|
|
|
|
- mtxid > Maximum ID number
|
|
|
- This service call was issued from a non-task.
- This service call was issued in the CPU locked state.
|
|
|
Illegal service call use.
- Multiple locking of a mutex.
|
|
|
- Specified mutex is not registered.
|
|
|
- The target mutex has been locked by another task.
|