Please enable JavaScript.
Coggle requires JavaScript to display documents.
ab_os_semaphore_get() delay issue - Coggle Diagram
ab_os_semaphore_get() delay issue
:mag: always 5-10ms? any context?
:mans_shoe: from Evan:
create, put
first sem_wait(no_wait) --> okay
second sem_wait(no_wait) --> ng
:check:
libabos/src/ab_os_semaphore.c, 138 /
Avoid too fast, add 1ms
/ ---> why?
---> it's abs time.
:mag: performance on regular pc?
:mans_shoe: quick exp
:check: first sem_wait() -> 74us
sec -> 1ms.
:mag: same on other proj?
:mans_shoe: test on vs1nn60
:check:
can't update FW ---> kernel panic
can't update loader ---> stuck after printing 'B'
2 more items...
:mag: use sem_trywait() if wait_time == 0?
:mans_shoe: experiment on linux box
:check: the result is okay.
:mag: will this modification remove the NG in the case of wait_time == 0 ?
:mans_shoe: experiment
:checkered_flag:: the result is okay.