threadx icon indicating copy to clipboard operation
threadx copied to clipboard

posix layer bug in file px_cond_timedwait.c and px_cond_wait.c

Open Albert-Coder opened this issue 3 years ago • 0 comments

in function pthread_cond_wait and pthread_cond_timedwait, using pthread_mutex_unlock(mutex), when status = tx_semaphore_get(semaphore_ptr, wait_option); returns status !=TX_SUCCESS, it does not deal the mutex , making the mutex unlock. when next time using the mutex, found tx_mutex_ownership_count ==0, return error.

Albert-Coder avatar May 13 '22 09:05 Albert-Coder