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 - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -