From: Andreas Jaeger Date: Thu, 10 Aug 2000 17:50:00 +0000 (+0000) Subject: Move setting of mutex owner into critical section. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e642a888521549ebe0d0aab87d8a5d92d80783b5;p=thirdparty%2Fglibc.git Move setting of mutex owner into critical section. --- diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 2f2ab954d04..0e8db454556 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +2000-08-10 Andreas Jaeger + + * mutex.c (__pthread_mutex_unlock): Move setting of mutex owner + into critical section. + Patch by Juergen Kreileder . + 2000-07-31 Andreas Jaeger * mutex.c (__pthread_mutex_trylock): Only set mutex owner if we diff --git a/linuxthreads/mutex.c b/linuxthreads/mutex.c index ed1e7607c18..29f234308ac 100644 --- a/linuxthreads/mutex.c +++ b/linuxthreads/mutex.c @@ -109,8 +109,8 @@ int __pthread_mutex_unlock(pthread_mutex_t * mutex) { switch (mutex->__m_kind) { case PTHREAD_MUTEX_FAST_NP: - __pthread_unlock(&mutex->__m_lock); mutex->__m_owner = NULL; + __pthread_unlock(&mutex->__m_lock); return 0; case PTHREAD_MUTEX_RECURSIVE_NP: if (mutex->__m_count > 0) {