X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_trylock.c;h=db784a73a8b9bbc5d1ea400d8f440e7421765127;hp=fb2779706e75a9fa7e9e6769021174a30e7f31b5;hb=5e977e8b48c6862767ea0a1255233600957c05db;hpb=7fe58d3511387ab6c57909f6e4baef58acd6bd56 diff --git a/src/thread/pthread_mutex_trylock.c b/src/thread/pthread_mutex_trylock.c index fb277970..db784a73 100644 --- a/src/thread/pthread_mutex_trylock.c +++ b/src/thread/pthread_mutex_trylock.c @@ -43,6 +43,7 @@ int pthread_mutex_trylock(pthread_mutex_t *m) self->robust_list.head = &m->_m_next; self->robust_list.pending = 0; if (own) { + m->_m_count = 0; m->_m_type += 8; return EOWNERDEAD; }