Lines Matching refs:mtxp
27 __pthread_mutex_unlock (pthread_mutex_t *mtxp) in __pthread_mutex_unlock() argument
30 int ret = 0, flags = mtxp->__flags & GSYNC_SHARED; in __pthread_mutex_unlock()
32 switch (MTX_TYPE (mtxp)) in __pthread_mutex_unlock()
35 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock()
40 if (!mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_unlock()
42 else if (--mtxp->__cnt == 0) in __pthread_mutex_unlock()
44 mtxp->__owner_id = mtxp->__shpid = 0; in __pthread_mutex_unlock()
45 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock()
52 if (!mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_unlock()
56 mtxp->__owner_id = mtxp->__shpid = 0; in __pthread_mutex_unlock()
57 lll_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock()
66 if (mtxp->__owner_id == NOTRECOVERABLE_ID) in __pthread_mutex_unlock()
68 else if (mtxp->__owner_id != self->thread in __pthread_mutex_unlock()
69 || (int) (mtxp->__lock & LLL_OWNER_MASK) != __getpid ()) in __pthread_mutex_unlock()
71 else if (--mtxp->__cnt == 0) in __pthread_mutex_unlock()
75 mtxp->__owner_id = ((mtxp->__lock & LLL_DEAD_OWNER) in __pthread_mutex_unlock()
77 lll_robust_unlock (mtxp->__lock, flags); in __pthread_mutex_unlock()