-
tsnd_dtq
-
Send to data queue (with timeout).
ER tsnd_dtq (ID dtqid, VP_INT data, TMO tmout);
|
|
|
|
ID dtqid;
|
ID number of the data queue to which the data element is sent.
|
|
VP_INT data;
|
Data element to be sent to the data queue.
|
|
TMO tmout;
|
Specified timeout (unit:millisecond).
TMO_FEVR: Waiting forever.
Value: Specified timeout.
|
This service call writes data specified by parameter
data to the data queue area of the data queue specified by parameter
dtqid.
If there is no available space for writing data in the data queue area of the target data queue when this service call is issued, the service call does not write data but queues the invoking task to the transmission wait queue of the target data queue and moves it from the RUNNING state to the WAITING state with time (data transmission wait state).
The sending WAITING state for a data queue is cancelled in the following cases, and then moved to the READY state.
Sending WAITING State for a Data Queue Cancel Operation
|
|
An available space was secured in the data queue area of the target data queue as a result of issuing rcv_dtq.
|
|
An available space was secured in the data queue area of the target data queue as a result of issuing prcv_dtq.
|
|
An available space was secured in the data queue area of the target data queue as a result of issuing iprcv_dtq.
|
|
An available space was secured in the data queue area of the target data queue as a result of issuing trcv_dtq.
|
|
Forced release from waiting (accept rel_wai while waiting).
|
|
Forced release from waiting (accept irel_wai while waiting).
|
|
Polling failure or timeout.
|
|
If a task has been queued to the reception wait queue of the target data queue when this service call is issued, this service call does not write data but transfers the data to the task. As a result, the task is unlinked from the reception wait queue and moves from the WAITING state (data reception wait state) to the READY state, or from the WAITING-SUSPENDED state to the SUSPENDED state.
Note 1 Data is written to the data queue area of the target data queue in the order of the data transmission request.
Note 2 Invoking tasks are queued to the transmission wait queue of the target data queue in the order defined during configuration (FIFO order or priority order).
Note 3 TMO_FEVR is specified for wait time
tmout, processing equivalent to
snd_dtq will be executed. When TMO_POL is specified, processing equivalent to
psnd_dtq /
ipsnd_dtq will be executed.
|
|
|
|
|
|
|
|
|
|
|
- dtqid > Maximum ID number
|
|
|
- This service call was issued from a non-task.
- This service call was issued in the CPU locked state.
- This service call was issued in the dispatching disabled state.
|
|
|
- Specified data queue is not registered.
|
|
|
Forced release from the WAITING state.
|
|
|
- Polling failure or timeout.
|