pthreads: pthread_mutex_consistent() needs to clear flags.

This commit is contained in:
Gregory Nutt
2017-03-26 14:44:57 -06:00
parent 34c5e1c18f
commit 8b23c16b90
+2 -1
View File
@@ -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().