recovering ownerdead robust mutex must reset recursive lock count
This commit is contained in:
parent
b6f9974ad8
commit
5e977e8b48
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ int pthread_mutex_trylock(pthread_mutex_t *m)
|
||||||
self->robust_list.head = &m->_m_next;
|
self->robust_list.head = &m->_m_next;
|
||||||
self->robust_list.pending = 0;
|
self->robust_list.pending = 0;
|
||||||
if (own) {
|
if (own) {
|
||||||
|
m->_m_count = 0;
|
||||||
m->_m_type += 8;
|
m->_m_type += 8;
|
||||||
return EOWNERDEAD;
|
return EOWNERDEAD;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue