RTEMS ITRON 3.0 API User's Guide
The T_CSEM structure is used to define the characteristics of a semaphore
and passed an as argument to the cre_sem service. The structure
is defined as follows:
/*
* Create Semaphore (cre_sem) Structure
*/
typedef struct t_csem {
VP exinf; /* extended information */
ATR sematr; /* semaphore attributes */
/* Following is the extended function for [level X]. */
INT isemcnt; /* initial semaphore count */
INT maxsem; /* maximum semaphore count */
/* additional implementation dependent information may be included */
} T_CSEM;
/*
* sematr - Semaphore Attribute Values
*/
#define TA_TFIFO 0x00 /* waiting tasks are handled by FIFO */
#define TA_TPRI 0x01 /* waiting tasks are handled by priority */
where the meaning of each field is:
TA_TFIFO)
or priority (TA_TPRI) order.
RTEMS ITRON 3.0 API User's Guide
Copyright © 1988-2004 OAR Corporation