summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 7d7c455..3244158 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -1406,8 +1406,8 @@ get_mcontested(pthread_mutex_t mutexp)
* threads are concerned) setting of the thread state with
* it's status on the mutex queue.
*/
+ mutex_queue_enq(mutexp, curthread);
do {
- mutex_queue_enq(mutexp, curthread);
PTHREAD_SET_STATE(curthread, PS_MUTEX_WAIT);
curthread->data.mutex = mutexp;
_thread_critical_exit(curthread);
OpenPOWER on IntegriCloud