-
set_flg
iset_flg
-
ER set_flg (ID flgid, FLGPTN setptn);
ER iset_flg (ID flgid, FLGPTN setptn);
|
|
|
|
ID flgid;
|
ID number of the eventflag.
|
|
FLGPTN setptn;
|
|
These service calls set the result of ORing the bit pattern of the eventflag specified by parameter
flgid and the bit pattern specified by parameter
setptn as the bit pattern of the target eventflag.
After that, these service calls evaluate whether the wait condition of the tasks in the wait queue is satisfied. This evaluation is done in order of the wait queue. If the wait condition is satisfied, the relevant task is unlinked from the wait queue at the same time as bit pattern setting processing. As a result, the relevant task is moved from the WAITING state (WAITING state for an eventflag) to the READY state, or from the WAITING-SUSPENDED state to the SUSPENDED state. At this time, the bit pattern of the target event flag is cleared to 0 and this service call finishes processing if the
TA_CLR attribute is specified for the target eventflag.
|
|
|
|
|
|
|
|
|
|
|
- This service call was issued in the CPU locked state.
- The iset_flg was issued from task.
- The set_flg was issued from non-task.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
|