projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
simplify pthread tsd key handling
[oweals/musl.git]
/
src
/
thread
/
pthread_mutex_consistent.c
1
#include "pthread_impl.h"
2
3
int pthread_mutex_consistent(pthread_mutex_t *m)
4
{
5
if (m->_m_type < 8) return EINVAL;
6
if ((m->_m_lock & 0x3fffffff) != pthread_self()->tid)
7
return EPERM;
8
m->_m_type -= 8;
9
return 0;
10
}