Home
last modified time | relevance | path

Searched refs:mtx_init (Results 1 - 25 of 120) sorted by relevance

12345

/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dmtx_init.c24 * @tc.name : mtx_init.
25 * @tc.desc : Verify mtx_init process success when second args is mtx_plain.
31 ret = mtx_init(&g_mtx, mtx_plain); in mtx_init_0100()
36 * @tc.name : mtx_init.
37 * @tc.desc : Verify mtx_init process success when second args is mtx_timed.
43 ret = mtx_init(&g_mtx, mtx_timed); in mtx_init_0200()
48 * @tc.name : mtx_init.
49 * @tc.desc : Verify mtx_init process success when second args is mtx_plain | mtx_recursive.
55 ret = mtx_init(&g_mtx, mtx_plain | mtx_recursive); in mtx_init_0300()
60 * @tc.name : mtx_init
[all...]
H A Dmtx_lock.c76 * @tc.desc : Verify process mtx_lock success when mtx_init second args is mtx_plain.
81 int result = mtx_init(&g_mtex, mtx_plain); in mtx_lock_0100()
83 t_error("%s mtx_init failed", __func__); in mtx_lock_0100()
101 * @tc.desc : Verify process mtx_lock success when mtx_init second args is mtx_timed.
106 int result = mtx_init(&g_mtex, mtx_timed); in mtx_lock_0200()
108 t_error("%s mtx_init failed", __func__); in mtx_lock_0200()
131 int result = mtx_init(&g_mtex, mtx_plain | mtx_recursive); in mtx_lock_0300()
133 t_error("%s mtx_init failed", __func__); in mtx_lock_0300()
156 int result= mtx_init(&g_mtex, mtx_timed | mtx_recursive); in mtx_lock_0400()
158 t_error("%s mtx_init faile in mtx_lock_0400()
[all...]
H A Dmtx_timedlock.c37 ret = mtx_init(&mutex, mtx_timed); in mtx_timedlock_0100()
39 t_error("%s mtx_init failed", __func__); in mtx_timedlock_0100()
64 ret = mtx_init(&mutex, mtx_timed); in mtx_timedlock_0200()
66 t_error("%s mtx_init failed", __func__); in mtx_timedlock_0200()
70 t_error("%s mtx_init failed", __func__); in mtx_timedlock_0200()
96 ret = mtx_init(&mutex, mtx_timed); in mtx_timedlock_time64_0100()
98 t_error("%s mtx_init failed", __func__); in mtx_timedlock_time64_0100()
H A Dmtx_trylock.c47 * @tc.desc : Verify process mtx_trylock success when mtx_init second args is mtx_plain | tx_recursive.
52 int result = mtx_init(&g_mtex, mtx_plain | mtx_recursive); in mtx_trylock_0100()
54 t_error("%s mtx_init failed", __func__); in mtx_trylock_0100()
72 * @tc.desc : Verify process mtx_trylock fail when mtx_init second args is mtx_plain.
77 int result = mtx_init(&g_mtex, mtx_plain); in mtx_trylock_0200()
79 t_error("%s mtx_init failed", __func__); in mtx_trylock_0200()
H A Dcnd_timedwait.c53 if (mtx_init(&mutex, mtx_plain) != thrd_success) { in cnd_timedwait_0100()
54 t_error("%s mtx_init failed\n", __func__); in cnd_timedwait_0100()
97 if (mtx_init(&mutex, mtx_plain) != thrd_success) { in cnd_timedwait_time64_0100()
98 t_error("%s mtx_init failed\n", __func__); in cnd_timedwait_time64_0100()
H A Dcnd_signal.c42 mtx_init(&mtx, 0); in cnd_signal_0100()
H A Dcnd_wait.c41 mtx_init(&mtx, 0); in cnd_wait_0100()
H A Dmtx_unlock.c39 int result = mtx_init(&g_mtx, mtx_plain); in mtx_unlock_0100()
41 t_error("%s mtx_init failed", __func__); in mtx_unlock_0100()
H A Dcnd_broadcast.c50 if (mtx_init(&mutex, mtx_plain) != thrd_success) { in cnd_broadcast_0100()
51 t_error("%s mtx_init failed\n", __func__); in cnd_broadcast_0100()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_mutex_test.cpp46 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_plain)); in HWTEST_F()
57 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_timed)); in HWTEST_F()
68 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_plain | mtx_recursive)); in HWTEST_F()
79 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_timed | mtx_recursive)); in HWTEST_F()
90 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_plain)); in HWTEST_F()
107 EXPECT_EQ(thrd_success, mtx_init(&mtx_, mtx_plain | mtx_recursive)); in HWTEST_F()
124 EXPECT_EQ(thrd_success, mtx_init(&mtxTime, mtx_timed)); in HWTEST_F()
128 EXPECT_EQ(thrd_success, mtx_init(&mtxTime, mtx_timed)); in HWTEST_F()
149 EXPECT_EQ(thrd_success, mtx_init(&mtxUnlock, mtx_plain)); in HWTEST_F()
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_queue.c244 (void) mtx_init(&ctx->mutex_pop, mtx_plain); in nine_queue_create()
247 (void) mtx_init(&ctx->mutex_push, mtx_plain); in nine_queue_create()
/third_party/musl/src/thread/
H A Dmtx_init.c4 int mtx_init(mtx_t *m, int type) in mtx_init() function
/third_party/FreeBSD/sys/dev/random/
H A Dyarrow.h33 #define RANDOM_RESEED_INIT_LOCK(x) mtx_init(&yarrow_state.ys_mtx, "reseed mutex", NULL, MTX_DEF)
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_winsys.c867 (void) mtx_init(&ws->hyperz_owner_mutex, mtx_plain); in radeon_drm_winsys_create()
868 (void) mtx_init(&ws->cmask_owner_mutex, mtx_plain); in radeon_drm_winsys_create()
873 (void) mtx_init(&ws->bo_handles_mutex, mtx_plain); in radeon_drm_winsys_create()
874 (void) mtx_init(&ws->vm32.mutex, mtx_plain); in radeon_drm_winsys_create()
875 (void) mtx_init(&ws->vm64.mutex, mtx_plain); in radeon_drm_winsys_create()
876 (void) mtx_init(&ws->bo_fence_lock, mtx_plain); in radeon_drm_winsys_create()
/third_party/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h80 (void) mtx_init(&sema->mutex, mtx_plain); in pipe_semaphore_init()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_screen.c1089 (void) mtx_init(&screen->ctx_mutex, mtx_plain); in llvmpipe_create_screen()
1090 (void) mtx_init(&screen->cs_mutex, mtx_plain); in llvmpipe_create_screen()
1091 (void) mtx_init(&screen->rast_mutex, mtx_plain); in llvmpipe_create_screen()
1093 (void) mtx_init(&screen->late_mutex, mtx_plain); in llvmpipe_create_screen()
H A Dlp_scene_queue.c79 (void) mtx_init(&queue->mutex, mtx_plain); in lp_scene_queue_create()
/third_party/FreeBSD/sys/sys/
H A Dmutex.h39 * Mutex types and options passed to mtx_init(). MTX_QUIET and MTX_DUPOK
56 mtx_init(pthread_mutex_t *mtx, const char *name, const char *type, int opts) in mtx_init() function
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_assembler.c38 mtx_init(&shader->variants_lock, mtx_plain); in ir3_parse_asm()
/third_party/musl/porting/uniproton/kernel/include/
H A Dthreads.h60 int mtx_init(mtx_t *, int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dthreads.h60 int mtx_init(mtx_t *, int);
/third_party/musl/include/
H A Dthreads.h60 int mtx_init(mtx_t *, int);
/third_party/FreeBSD/sys/kern/
H A Dkern_timeout.c57 mtx_init(&c->callout_mtx,0,0,0); in callout_init_mtx()
/third_party/mesa3d/src/util/
H A Dsimple_mtx.h147 mtx_init(mtx, type); in simple_mtx_init()
/third_party/mesa3d/src/drm-shim/
H A Ddevice.c87 mtx_init(&shim_device.mem_lock, mtx_plain); in drm_shim_device_init()
121 mtx_init(&shim_fd->handle_lock, mtx_plain); in drm_shim_file_create()

Completed in 8 milliseconds

12345