
2. PMC SYSTEM CALL
B–61863E–1/06
PMC LIBRARY
162
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_queu_sem
[Description]
Changes the semaphore queue type.
[Format]
ret = os_queu_sem(semaphore_id,wait_queue_type) ;
unsigned short ret ;
unsigned char semaphore_id ;
unsigned short wait_queue_type ;
[Input]
semaphore_id Semaphore ID (10 to 39)
wait_queue_type FIFO 0, PRIORITY 1
[Output]
______
[Returns]
ret Completion code
0 ; The semaphore queue type has changed normally.
0106H ; The semaphore ID is out of range (other than 10 to 39).
0110H ; There is no specified semaphore ID.
013DH ; Wait_queue_type error (other than 0 and 1)
[Remarks]
The default queue type is First In, First Out (FIFO). Tasks that are
made to be ready are selected in the order in which they wait. If
PRIORITY is specified, tasks that are made to be ready are selected
according to the task priority.
2.20
CHANGING THE
SEMAPHORE QUEUE
TYPE