eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.92k stars 797 forks source link

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

Closed Albert-Coder closed 1 year ago

Albert-Coder commented 2 years ago

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.