-
ref_mtx
iref_mtx
-
ER ref_mtx (ID mtxid, T_RMTX *pk_rmtx);
ER iref_mtx (ID mtxid, T_RMTX *pk_rmtx);
|
|
|
|
ID mtxid;
|
ID number of the mutex to be referenced.
|
|
T_RMTX *pk_rmtx;
|
Pointer to the packet returning the mutex state.
|
[Mutex state packet: T_RMTX]
typedef struct t_rmtx {
ID htskid; /*Existence of locked mutex*/
ID wtskid; /*Existence of waiting task*/
ATR mtxatr; /*Attribute*/
PRI ceilpri; /*Reserved for future use*/
} T_RMTX;
|
The service calls store the detailed information of the mutex specified by parameter
mtxid (existence of locked mutexes, waiting tasks, etc.) into the area specified by parameter
pk_rmtx.
|
|
|
|
|
|
|
|
- mtxid > Maximum ID number
|
|
|
- This service call was issued in the CPU locked state.
|
|
|
- Specified mutex is not registered.
|