Searched refs:m_owner (Results 1 - 13 of 13) sorted by relevance

/freebsd-9.3-release/lib/libkse/thread/
H A Dthr_mutex.c198 pmutex->m_owner = NULL;
267 (*mutex)->m_owner = NULL;
290 if (((*mutex)->m_owner != NULL) ||
383 if ((*mutex)->m_owner == NULL) {
385 (*mutex)->m_owner = curthread;
391 } else if ((*mutex)->m_owner == curthread)
401 if ((*mutex)->m_owner == NULL) {
403 (*mutex)->m_owner = curthread;
423 } else if ((*mutex)->m_owner == curthread)
437 else if ((*mutex)->m_owner
[all...]
H A Dthr_private.h309 struct pthread *m_owner; member in struct:pthread_mutex
/freebsd-9.3-release/sys/sys/
H A D_umtx.h40 volatile __lwpid_t m_owner; /* Owner of the mutex */ member in struct:umutex
/freebsd-9.3-release/lib/libthr/thread/
H A Dthr_umtx.c67 owner = mtx->m_owner;
69 atomic_cmpset_acq_32(&mtx->m_owner, owner, id|owner))
91 owner = mtx->m_owner;
94 &mtx->m_owner,
131 owner = mtx->m_owner;
133 atomic_cmpset_acq_32(&mtx->m_owner, owner, id|owner))
174 owner = mtx->m_owner;
177 } while (__predict_false(!atomic_cmpset_rel_32(&mtx->m_owner,
H A Dthr_mutex.c149 pmutex->m_owner = NULL;
156 pmutex->m_lock.m_owner = UMUTEX_UNOWNED;
160 pmutex->m_lock.m_owner = UMUTEX_UNOWNED;
164 pmutex->m_lock.m_owner = UMUTEX_CONTESTED;
251 m->m_lock.m_owner = TID(curthread);
253 m->m_lock.m_owner = TID(curthread) | UMUTEX_CONTESTED;
268 if (m->m_owner != NULL) {
283 (m)->m_owner = curthread; \
293 (m)->m_owner = NULL; \
328 } else if (m->m_owner
[all...]
H A Dthr_umtx.h76 if (atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_UNOWNED, id))
86 if (atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_UNOWNED, id) != 0)
88 if ((uint32_t)mtx->m_owner == UMUTEX_CONTESTED &&
90 if (atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_CONTESTED, id | UMUTEX_CONTESTED))
123 if (atomic_cmpset_rel_32(&mtx->m_owner, id, UMUTEX_UNOWNED))
H A Dthr_pspinlock.c106 while (lck->s_lock.m_owner) {
H A Dthr_cond.c376 if (mp->m_owner == curthread) {
408 if (mp->m_owner == curthread) {
H A Dthr_private.h151 struct pthread *m_owner; member in struct:pthread_mutex
/freebsd-9.3-release/contrib/gdb/include/
H A Dos9k.h92 #define m_user m_owner.grp_usr.usr
93 #define m_group m_owner.grp_usr.grp
94 #define m_group_user m_owner.group_user
112 unsigned char m_owner[4]; /* Group/user id. */
111 unsigned char m_owner[4]; /* Group/user id. */ member in struct:mh_com
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dkernel.c110 mp->m_owner = NULL;
119 ASSERT(mp->m_owner == NULL);
121 mp->m_owner = (void *)-1UL;
130 return (mp->m_owner == curthread);
137 ASSERT(mp->m_owner != (void *)-1UL);
138 ASSERT(mp->m_owner != curthread);
140 ASSERT(mp->m_owner == NULL);
141 mp->m_owner = curthread;
148 ASSERT(mp->m_owner != (void *)-1UL);
150 ASSERT(mp->m_owner
[all...]
/freebsd-9.3-release/sys/kern/
H A Dkern_umtx.c1170 owner = fuword32(__DEVOLATILE(void *, &m->m_owner));
1178 owner = casuword32(&m->m_owner, UMUTEX_UNOWNED, id);
1190 owner = casuword32(&m->m_owner,
1238 old = casuword32(&m->m_owner, owner, owner | UMUTEX_CONTESTED);
1288 owner = fuword32(__DEVOLATILE(uint32_t *, &m->m_owner));
1296 old = casuword32(&m->m_owner, owner, UMUTEX_UNOWNED);
1319 old = casuword32(&m->m_owner, owner,
1346 owner = fuword32(__DEVOLATILE(uint32_t *, &m->m_owner));
1366 owner = casuword32(&m->m_owner, UMUTEX_CONTESTED, UMUTEX_UNOWNED);
1417 owner = fuword32(__DEVOLATILE(uint32_t *, &m->m_owner));
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzpool/common/sys/
H A Dzfs_context.h238 void *m_owner; member in struct:kmutex
246 #define MUTEX_HELD(m) ((m)->m_owner == curthread)

Completed in 228 milliseconds