operating system - Semaphore under uCOS-III -


i use ucos-iii under arm cortex m4 , have following problem:

if ossempend() executed twice within same task), like

timeout = 100; /* 0.1 s */ ossempend(rtos_sem_p, timeout, os_opt_pend_blocking, null, &err); ... ossempend(rtos_sem_p, timeout, os_opt_pend_blocking, null, &err); ... 

(without issuing ossempost()) not run timeout @ second call block infinitely.

i checked can, still cannot find problem... can explain me happens here?

many thanks,

michael


Comments

Popular posts from this blog

javascript - Feed FileReader from server side files -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -