cre_flg
acre_flg
ER cre_flg (ID flgid, T_CFLG *pk_cflg );
ER_ID acre_flg ( T_CFLG *pk_cflg );
typedef struct t_cflg { ATR flgatr; /*Eventflag attribute*/ FLGPTN iflgptn; /*Initial bit pattern*/ } T_CFLG; |
The cre_flg creates a eventflag with eventflag ID indicated by flgid according to the content of pk_cflg. The acre_flg creates a eventflag according to the content of pk_cflg, and returns the created eventflag ID.
flgatr := ( ( TA_TFIFO || TA_TPRI | ( TA_WSGL || TA_WMUL ) | [TA_CLR] )
- TA_TPRI ( = 0x0001)
Task wait queue is managed in task current priority order. Among tasks with the same priority, they are queued in FIFO order.
When TA_CLR attribute is not specified, even if there is the TA_TPRI attribute specified, the queue is managed in the same way as for the TA_TFIFO attribute. This behavior falls outside mITRON4.0 specification.
Task wait queue is managed in task current priority order. Among tasks with the same priority, they are queued in FIFO order.
When TA_CLR attribute is not specified, even if there is the TA_TPRI attribute specified, the queue is managed in the same way as for the TA_TFIFO attribute. This behavior falls outside mITRON4.0 specification.
- TA_CLR ( = 0x0004)
All the bits of the eventflag are cleared when wai_flg, pol_flg, ipol_flg or twai_flg ends normally.
All the bits of the eventflag are cleared when wai_flg, pol_flg, ipol_flg or twai_flg ends normally.