Lines Matching refs:mtxp
27 #define ROBUST_LOCK(self, mtxp, cb, ...) \ argument
28 if (mtxp->__owner_id == NOTRECOVERABLE_ID) \
30 else if (mtxp->__owner_id == self->thread \
31 && __getpid () == (int)(mtxp->__lock & LLL_OWNER_MASK)) \
33 if (mtxp->__type == PT_MTX_RECURSIVE) \
35 if (__glibc_unlikely (mtxp->__cnt + 1 == 0)) \
38 ++mtxp->__cnt; \
41 else if (mtxp->__type == PT_MTX_ERRORCHECK) \
45 ret = cb (mtxp->__lock, ##__VA_ARGS__); \
48 if (mtxp->__owner_id == ENOTRECOVERABLE) \
52 mtxp->__owner_id = self->thread; \
53 mtxp->__cnt = 1; \
56 mtxp->__lock = mtxp->__lock | LLL_DEAD_OWNER; \
85 #define MTX_TYPE(mtxp) \ argument
86 ((mtxp)->__type | ((mtxp)->__flags & PTHREAD_MUTEX_ROBUST))