Searched refs:mtx (Results 1 - 25 of 108) sorted by relevance

12345

/haiku-fatelf/src/libs/compat/freebsd_network/compat/sys/
H A Dcondvar.h27 void cv_wait(struct cv*, struct mtx*);
28 int cv_timedwait(struct cv*, struct mtx*, int);
H A Dmutex.h24 #define mtx_assert(mtx, what)
38 extern struct mtx Giant;
41 void mtx_init(struct mtx*, const char*, const char*, int);
42 void mtx_destroy(struct mtx*);
46 mtx_lock(struct mtx* mutex)
57 mtx_unlock(struct mtx* mutex)
68 mtx_initialized(struct mtx* mutex)
76 mtx_owned(struct mtx* mutex)
H A D_mutex.h13 struct mtx { struct
H A Dcallout.h23 struct mtx * c_mtx;
32 void callout_init_mtx(struct callout *c, struct mtx *mutex, int flags);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutex_lock/
H A D4-1.c98 pthread_mutex_t mtx; variable
106 ret = pthread_mutex_trylock(&mtx);
117 if ((ret = pthread_mutex_lock(&mtx)))
128 if ((ret = pthread_mutex_unlock(&mtx)))
163 if ((ret = pthread_mutex_init(&mtx, &ma)))
172 if ((ret = pthread_mutex_lock(&mtx)))
175 if ((ret = pthread_mutex_lock(&mtx)))
180 if ((ret = pthread_mutex_unlock(&mtx)))
202 if ((ret = pthread_mutex_unlock(&mtx)))
210 ret = pthread_mutex_unlock(&mtx);
[all...]
H A D5-1.c99 pthread_mutex_t mtx[5]; variable
129 if ((ret = pthread_mutex_lock(&mtx[i]))) /* Attempt to lock the mutex */
134 if ((ret = pthread_mutex_unlock(&mtx[i]))) /* We don't need the mutex anymore */
179 if ((ret = pthread_mutex_init(&mtx[i], pma[i])))
181 if ((ret = pthread_mutex_lock(&mtx[i])))
253 if ((ret = pthread_mutex_unlock(&mtx[i])))
267 if ((ret = pthread_mutex_destroy(&mtx[i])))
/haiku-fatelf/src/libs/compat/freebsd_network/
H A Dmutex.c15 struct mtx Giant;
17 struct mtx gIdStoreLock;
21 mtx_init(struct mtx *mutex, const char *name, const char *type,
37 mtx_destroy(struct mtx *mutex)
H A Dcondvar.c25 int cv_timedwait(struct cv* variable, struct mtx* mutex, int timeout)
37 void cv_wait(struct cv* variable, struct mtx* mutex)
H A Dunit.h15 struct mtx* storeMutex;
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_once/
H A D1-3.c83 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
88 ret = pthread_mutex_lock( &mtx );
97 ret = pthread_mutex_unlock( &mtx );
160 ret = pthread_mutex_lock( &mtx );
173 ret = pthread_mutex_unlock( &mtx );
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_join/
H A D4-1.c93 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
102 ret = pthread_mutex_lock( &mtx );
109 ret = pthread_mutex_unlock( &mtx );
152 ret = pthread_mutex_lock( &mtx );
229 ret = pthread_mutex_unlock( &mtx );
248 ret = pthread_mutex_unlock( &mtx );
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_atfork/
H A D1-2.c96 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
123 ret = pthread_mutex_lock( &mtx );
130 ret = pthread_mutex_unlock( &mtx );
197 ret = pthread_mutex_lock( &mtx );
220 ret = pthread_mutex_unlock( &mtx );
H A D3-2.c83 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
110 ret = pthread_mutex_lock( &mtx );
117 ret = pthread_mutex_unlock( &mtx );
186 ret = pthread_mutex_lock( &mtx );
221 ret = pthread_mutex_unlock( &mtx );
H A D2-2.c84 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
150 ret = pthread_mutex_lock( &mtx );
157 ret = pthread_mutex_unlock( &mtx );
225 ret = pthread_mutex_lock( &mtx );
290 ret = pthread_mutex_unlock( &mtx );
H A D4-1.c84 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
160 ret = pthread_mutex_lock( &mtx );
167 ret = pthread_mutex_unlock( &mtx );
225 ret = pthread_mutex_lock( &mtx );
263 ret = pthread_mutex_unlock( &mtx );
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_mutex_trylock/
H A Dstress.c128 pthread_mutex_t * mtx; member in struct:__anon6010
167 ret = pthread_mutex_trylock(td->mtx);
195 ret = pthread_mutex_unlock(td->mtx);
218 pthread_mutex_t mtx[NSCENAR+2]; local
263 ret = pthread_mutex_init(&mtx[i], &ma);
273 ret = pthread_mutex_init(&mtx[i], &ma);
278 ret = pthread_mutex_init(&mtx[i+1], NULL);
290 td.mtx = &mtx[i];
293 ret = pthread_mutex_lock(td.mtx);
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-6.c91 pthread_mutex_t mtx; member in struct:__anon5973
109 ret = pthread_mutex_trylock(&(data.mtx));
111 ret = pthread_mutex_unlock(&(data.mtx));
143 ret = pthread_mutex_unlock(&(data.mtx));
148 ret = pthread_mutex_unlock(&(data.mtx));
171 ret= pthread_mutex_lock(&(data.mtx));
184 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx), &ts);
299 ret = pthread_mutex_init(&(data.mtx), &ma);
331 ret = pthread_mutex_lock(&(data.mtx));
345 ret = pthread_mutex_unlock(&(data.mtx));
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_wait/
H A D2-3.c91 pthread_mutex_t mtx; member in struct:__anon5981
108 ret = pthread_mutex_trylock(&(data.mtx));
110 ret = pthread_mutex_unlock(&(data.mtx));
142 ret = pthread_mutex_unlock(&(data.mtx));
147 ret = pthread_mutex_unlock(&(data.mtx));
163 ret= pthread_mutex_lock(&(data.mtx));
177 ret = pthread_cond_wait(&(data.cnd), &(data.mtx));
292 ret = pthread_mutex_init(&(data.mtx), &ma);
317 ret = pthread_mutex_lock(&(data.mtx));
331 ret = pthread_mutex_unlock(&(data.mtx));
[all...]
/haiku-fatelf/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_haiku.h70 struct mtx mtx; member in struct:__anon4707
75 mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF | MTX_RECURSE); \
77 #define IEEE80211_LOCK_OBJ(_ic) (&(_ic)->ic_comlock.mtx)
89 struct mtx mtx; member in struct:__anon4708
94 mtx_init(&nl->mtx, nl->name, NULL, MTX_DEF | MTX_RECURSE); \
96 #define IEEE80211_NODE_LOCK_OBJ(_nt) (&(_nt)->nt_nodelock.mtx)
115 struct mtx mtx; member in struct:__anon4709
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/attansic_l2/dev/ae/
H A Dif_aevar.h112 struct mtx mtx; member in struct:ae_softc
156 #define AE_LOCK(_sc) mtx_lock(&(_sc)->mtx)
157 #define AE_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
158 #define AE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutex_destroy/
H A D2-2.c106 pthread_mutex_t mtx; local
175 ret = pthread_mutex_init(&mtx, pma[i]);
178 ret = pthread_mutex_destroy(&mtx);
181 ret = pthread_mutex_init(&mtx, pma[j]);
184 ret = pthread_mutex_destroy(&mtx);
H A D5-2.c107 pthread_mutex_t mtx; local
167 ret = pthread_mutex_init(&mtx, pma[i]);
170 ret = pthread_mutex_lock(&mtx);
173 ret = pthread_mutex_unlock(&mtx);
176 ret = pthread_mutex_destroy(&mtx);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_once/
H A Dstress.c98 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable
104 ret = pthread_mutex_lock( &mtx );
113 ret = pthread_mutex_unlock( &mtx );
224 ret = pthread_mutex_lock( &mtx );
237 ret = pthread_mutex_unlock( &mtx );
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_mutex_lock/
H A Ds-c1.c99 pthread_mutex_t mtx[5]; variable
122 ret=pthread_mutex_lock(&mtx[i]);
136 ret = pthread_mutex_unlock(&mtx[i]);
219 ret = pthread_mutex_init(&mtx[i], &ma);
232 ret = pthread_mutex_lock(&mtx[i]);
275 ret = pthread_mutex_unlock(&mtx[i]);
298 ret = pthread_mutex_destroy(&mtx[i]);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutex_trylock/
H A D2-1.c95 pthread_mutex_t mtx; member in struct:__anon5996
119 td->status = pthread_mutex_trylock(&(td->mtx));
125 ret = pthread_mutex_unlock(&(td->mtx));
278 ret = pthread_mutex_init(&(td->mtx), &ma);
289 ret = pthread_mutex_trylock(&(td->mtx));
291 ret = pthread_mutex_trylock(&(td->mtx));
298 ret = pthread_mutex_unlock(&(td->mtx));
383 ret= pthread_mutex_unlock(&(td->mtx));
386 ret= pthread_mutex_unlock(&(td->mtx));
392 ret = pthread_mutex_destroy(&(td->mtx));
[all...]

Completed in 169 milliseconds

12345