Home
last modified time | relevance | path

Searched refs:mtx_t (Results 1 – 25 of 149) sorted by relevance

123456

/third_party/mesa3d/src/c11/
Dthreads.h115 } mtx_t; /* Mock of CRITICAL_SECTION */ typedef
128 typedef pthread_mutex_t mtx_t; typedef
167 int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict __mtx,
169 int cnd_wait(cnd_t *, mtx_t *__mtx);
170 void mtx_destroy(mtx_t *__mtx);
171 int mtx_init(mtx_t *__mtx, int);
172 int mtx_lock(mtx_t *__mtx);
173 int mtx_timedlock(mtx_t *__restrict __mtx,
175 int mtx_trylock(mtx_t *__mtx);
176 int mtx_unlock(mtx_t *__mtx);
/third_party/glfw/deps/
Dtinycthread.h187 } mtx_t; typedef
189 typedef pthread_mutex_t mtx_t; typedef
204 int mtx_init(mtx_t *mtx, int type);
209 void mtx_destroy(mtx_t *mtx);
219 int mtx_lock(mtx_t *mtx);
223 int mtx_timedlock(mtx_t *mtx, const struct timespec *ts);
233 int mtx_trylock(mtx_t *mtx);
240 int mtx_unlock(mtx_t *mtx);
295 int cnd_wait(cnd_t *cond, mtx_t *mtx);
309 int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts);
Dtinycthread.c56 int mtx_init(mtx_t *mtx, int type) in mtx_init()
77 void mtx_destroy(mtx_t *mtx) in mtx_destroy()
86 int mtx_lock(mtx_t *mtx) in mtx_lock()
101 int mtx_timedlock(mtx_t *mtx, const struct timespec *ts) in mtx_timedlock()
109 int mtx_trylock(mtx_t *mtx) in mtx_trylock()
124 int mtx_unlock(mtx_t *mtx) in mtx_unlock()
237 static int _cnd_timedwait_win32(cnd_t *cond, mtx_t *mtx, DWORD timeout) in _cnd_timedwait_win32()
285 int cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait()
294 int cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts) in cnd_timedwait()
/third_party/musl/porting/liteos_m/kernel/include/
Dthreads.h60 int mtx_init(mtx_t *, int);
61 void mtx_destroy(mtx_t *);
63 int mtx_lock(mtx_t *);
64 int mtx_timedlock(mtx_t *__restrict, const struct timespec *__restrict);
65 int mtx_trylock(mtx_t *);
66 int mtx_unlock(mtx_t *);
74 int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *__restrict);
75 int cnd_wait(cnd_t *, mtx_t *);
/third_party/musl/include/
Dthreads.h60 int mtx_init(mtx_t *, int);
61 void mtx_destroy(mtx_t *);
63 int mtx_lock(mtx_t *);
64 int mtx_timedlock(mtx_t *__restrict, const struct timespec *__restrict);
65 int mtx_trylock(mtx_t *);
66 int mtx_unlock(mtx_t *);
74 int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *__restrict);
75 int cnd_wait(cnd_t *, mtx_t *);
/third_party/musl/porting/uniproton/kernel/include/
Dthreads.h60 int mtx_init(mtx_t *, int);
61 void mtx_destroy(mtx_t *);
63 int mtx_lock(mtx_t *);
64 int mtx_timedlock(mtx_t *__restrict, const struct timespec *__restrict);
65 int mtx_trylock(mtx_t *);
66 int mtx_unlock(mtx_t *);
74 int cnd_timedwait(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *__restrict);
75 int cnd_wait(cnd_t *, mtx_t *);
/third_party/mesa3d/src/c11/impl/
Dthreads_posix.c115 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *abs_time) in cnd_timedwait()
131 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait()
142 mtx_destroy(mtx_t *mtx) in mtx_destroy()
176 mtx_init(mtx_t *mtx, int type) in mtx_init()
200 mtx_lock(mtx_t *mtx) in mtx_lock()
208 mtx_timedlock(mtx_t *mtx, const struct timespec *ts) in mtx_timedlock()
237 mtx_trylock(mtx_t *mtx) in mtx_trylock()
245 mtx_unlock(mtx_t *mtx) in mtx_unlock()
Dthreads_win32.c71 static_assert(sizeof(mtx_t) == sizeof(CRITICAL_SECTION), "The size of mtx_t must equal to CRITICAL_…
221 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *abs_time) in cnd_timedwait()
234 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait()
246 mtx_destroy(mtx_t *mtx) in mtx_destroy()
254 mtx_init(mtx_t *mtx, int type) in mtx_init()
268 mtx_lock(mtx_t *mtx) in mtx_lock()
277 mtx_timedlock(mtx_t *mtx, const struct timespec *ts) in mtx_timedlock()
292 mtx_trylock(mtx_t *mtx) in mtx_trylock()
300 mtx_unlock(mtx_t *mtx) in mtx_unlock()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.h49 mtx_t mutex;
85 mtx_t bo_handles_mutex;
86 mtx_t bo_fence_lock;
99 mtx_t hyperz_owner_mutex;
101 mtx_t cmask_owner_mutex;
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.h60 mtx_t rast_mutex;
63 mtx_t cs_mutex;
68 mtx_t late_mutex;
71 mtx_t ctx_mutex;
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dmtx_timedlock.c23 extern int __mtx_timedlock_time64(mtx_t *__restrict, const struct timespec *__restrict);
35 mtx_t mutex; in mtx_timedlock_0100()
59 mtx_t mutex; in mtx_timedlock_0200()
94 mtx_t mutex; in mtx_timedlock_time64_0100()
/third_party/mesa3d/src/gallium/auxiliary/driver_rbug/
Drbug_context.h45 mtx_t call_mutex;
61 mtx_t draw_mutex;
77 mtx_t list_mutex;
/third_party/mesa3d/src/virtio/vulkan/
Dvn_instance.h48 mtx_t mutex;
57 mtx_t roundtrip_mutex;
74 mtx_t mutex;
79 mtx_t mutex;
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_cnd_test.cpp9 mtx_t threadMtx;
26 WaitThread(mtx_t* threadMtx, cnd_t* threadCnd, int* threadIndex) in WaitThread()
60 mtx_t* mtx_;
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_device.h227 mtx_t construct_mtx;
239 mtx_t pipeline_mutex;
245 mtx_t autotune_mutex;
261 mtx_t mutex;
267 mtx_t bo_mutex;
/third_party/musl/src/thread/
Dmtx_init.c4 int mtx_init(mtx_t *m, int type) in mtx_init()
6 *m = (mtx_t){ in mtx_init()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_screen.h80 mtx_t tex_mutex;
82 mtx_t swc_mutex; /* Used for buffer uploads */
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_screen.h70 mtx_t lock;
76 mtx_t bo_handles_mutex;
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_screen.h76 mtx_t bo_table_lock;
77 mtx_t bo_cache_lock;
/third_party/mesa3d/src/vulkan/runtime/
Dvk_instance.h90 mtx_t callbacks_mutex;
100 mtx_t callbacks_mutex;
/third_party/mesa3d/src/gallium/frontends/hgl/
Dhgl_context.h53 mtx_t mutex;
74 mtx_t fbMutex;
/third_party/mesa3d/src/gallium/auxiliary/os/
Dos_thread.h49 __pipe_mutex_assert_locked(mtx_t *mutex) in __pipe_mutex_assert_locked()
71 mtx_t mutex;
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_screen.h84 mtx_t lock;
91 mtx_t bo_handles_mutex;
/third_party/mesa3d/src/drm-shim/
Ddrm_shim.h47 mtx_t mem_lock;
73 mtx_t handle_lock;
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.h96 mtx_t mutex;
101 mtx_t bo_handles_mutex;

123456