mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
pthreads: pthread_mutex_consistent() needs to clear flags.
This commit is contained in:
@@ -118,7 +118,8 @@ int pthread_mutex_consistent(FAR pthread_mutex_t *mutex)
|
|||||||
{
|
{
|
||||||
/* The thread associated with the PID no longer exists */
|
/* The thread associated with the PID no longer exists */
|
||||||
|
|
||||||
mutex->pid = -1;
|
mutex->pid = -1;
|
||||||
|
mutex->flags = 0;
|
||||||
|
|
||||||
/* Reset the semaphore. This has the same affect as if the
|
/* Reset the semaphore. This has the same affect as if the
|
||||||
* dead task had called pthread_mutex_unlock().
|
* dead task had called pthread_mutex_unlock().
|
||||||
|
|||||||
Reference in New Issue
Block a user