pussuw commented on code in PR #16194: URL: https://github.com/apache/nuttx/pull/16194#discussion_r2044355170
########## libs/libc/semaphore/sem_wait.c: ########## @@ -155,8 +156,9 @@ int nxsem_wait(FAR sem_t *sem) # endif ) { - int32_t old = 1; - if (atomic_try_cmpxchg_acquire(NXSEM_COUNT(sem), &old, 0)) + int32_t old = NXSEM_NO_MHOLDER; + if (atomic_try_cmpxchg_acquire(NXSEM_MHOLDER(sem), &old, Review Comment: Same here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org