Home
last modified time | relevance | path

Searched refs:mtx (Results 1 – 8 of 8) sorted by relevance

/test/xts/acts/kernel_lite/futex_posix/src/
DPthreadMutexTest.cpp36 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in ThreadMutex() local
37 EXPECT_EQ(pthread_mutex_lock(mtx), 0) << "> return errno"; in ThreadMutex()
41 EXPECT_EQ(pthread_mutex_unlock(mtx), 0) << "> return errno"; in ThreadMutex()
52 pthread_mutex_t mtx; variable
56 EXPECT_EQ(pthread_mutex_init(&mtx, nullptr), 0) << "> return errno";
59 … EXPECT_EQ(pthread_create(&tid[i], nullptr, ThreadMutex, (void*)&mtx), 0) << "> return errno";
64 EXPECT_EQ(pthread_mutex_destroy(&mtx), 0) << "> return errno";
71 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in ThreadMtrylock1() local
72 EXPECT_EQ(pthread_mutex_trylock(mtx), 0) << "> return errno"; in ThreadMtrylock1()
76 EXPECT_EQ(pthread_mutex_unlock(mtx), 0) << "> return errno"; in ThreadMtrylock1()
[all …]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dthreadsndk.cpp447 mtx_t mtx; in MtxDestroy() local
448 mtx_init(&mtx, mtx_plain); in MtxDestroy()
449 mtx_destroy(&mtx); in MtxDestroy()
462 mtx_t mtx; in MtxInit() local
463 int ret = mtx_init(&mtx, mtx_plain); in MtxInit()
464 mtx_destroy(&mtx); in MtxInit()
473 mtx_t mtx; in MtxLock() local
474 mtx_init(&mtx, mtx_plain); in MtxLock()
475 int ret = mtx_lock(&mtx); in MtxLock()
476 mtx_trylock(&mtx); in MtxLock()
[all …]
Dotherstestndk.cpp1015 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in PthreadLockTimeoutNPNoOut() local
1021 pthread_mutex_lock_timeout_np(mtx, ms); in PthreadLockTimeoutNPNoOut()
1027 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in Pthreadmutexlocktimeoutnp() local
1029 pthread_create(&tid, nullptr, PthreadLockTimeoutNPNoOut, (void *)&mtx); in Pthreadmutexlocktimeoutnp()
1031 pthread_mutex_lock(&mtx); in Pthreadmutexlocktimeoutnp()
1033 pthread_mutex_unlock(&mtx); in Pthreadmutexlocktimeoutnp()
1049 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in PthreadTimedlockMonotonicNPOut() local
1055 pthread_mutex_timedlock_monotonic_np(mtx, &ts); in PthreadTimedlockMonotonicNPOut()
1065 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in Pthreadmutextimedlockmonotonicnp() local
1067 pthread_create(&tid, nullptr, PthreadTimedlockMonotonicNPOut, (void *)&mtx); in Pthreadmutextimedlockmonotonicnp()
[all …]
/test/testfwk/arkxtest/uitest/connection/
Dipc_transactor.cpp199 mutex mtx; in PublishCallerAndWaitForBackcaller() local
200 unique_lock<mutex> lock(mtx); in PublishCallerAndWaitForBackcaller()
225 mutex mtx; in WaitForPublishedCaller() local
226 unique_lock<mutex> lock(mtx); in WaitForPublishedCaller()
381 mutex mtx; in SendBroadcastCommand() local
382 unique_lock<mutex> lock(mtx); in SendBroadcastCommand()
/test/testfwk/arkxtest/uitest/server/
Dserver_main.cpp225 mutex mtx; in StartDaemon() local
226 unique_lock<mutex> lock(mtx); in StartDaemon()
Dsystem_ui_controller.cpp619 mutex mtx; in ConnectToSysAbility() local
620 unique_lock<mutex> uLock(mtx); in ConnectToSysAbility()
682 mutex mtx; in DisConnectFromSysAbility() local
683 unique_lock<mutex> uLock(mtx); in DisConnectFromSysAbility()
/test/ostest/wukong/common/src/
Dcomponent_manager.cpp131 std::mutex mtx; in Connect() local
132 std::unique_lock<std::mutex> uLock(mtx); in Connect()
/test/xts/acts/resourceschedule/resourceschedule_standard/ffrt/entry/src/main/cpp/
Dffrtndk.cpp764 ffrt_mutex_t mtx; in MutexAbnormalParamTest001() local
770 ret = ffrt_mutex_init(&mtx, &attr); in MutexAbnormalParamTest001()
774 ret = ffrt_mutex_init(&mtx, nullptr); in MutexAbnormalParamTest001()
782 ret = ffrt_mutex_destroy(&mtx); in MutexAbnormalParamTest001()
794 ffrt_mutex_t mtx; in MutexAbnormalParamTest002() local
795 int ret = ffrt_mutex_init(&mtx, nullptr); in MutexAbnormalParamTest002()
804 ret = ffrt_mutex_lock(&mtx); in MutexAbnormalParamTest002()
813 ret = ffrt_mutex_trylock(&mtx); // 没抢到锁 in MutexAbnormalParamTest002()
821 ret = ffrt_mutex_unlock(&mtx); in MutexAbnormalParamTest002()
828 ret = ffrt_mutex_destroy(&mtx); in MutexAbnormalParamTest002()