Home
last modified time | relevance | path

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

/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_publish_system_test.cpp39 std::mutex mtx; variable
109 mtx.unlock(); in OnReceiveEvent()
113 mtx.unlock(); in OnReceiveEvent()
117 mtx.unlock(); in OnReceiveEvent()
120 mtx.unlock(); in OnReceiveEvent()
147 mtx.lock();
163 while (!mtx.try_lock()) {
179 mtx.unlock();
207 mtx.lock();
223 while (!mtx.try_lock()) {
[all …]
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_publish_ordered_event_unit_test.cpp41 std::mutex mtx; variable
71 mtx.unlock(); in OnReceiveEvent()
130 mtx.lock();
142 while (!mtx.try_lock()) {
151 mtx.unlock();
229 mtx.lock();
236 while (!mtx.try_lock()) {
244 mtx.unlock();
277 mtx.lock();
282 while (!mtx.try_lock()) {
[all …]
Dcommon_event_freeze_test.cpp55 std::mutex mtx; variable
382 mtx.unlock(); in AsyncProcess()
414 mtx.lock();
422 while (!mtx.try_lock()) {
444 mtx.unlock();
476 mtx.lock();
484 while (!mtx.try_lock()) {
504 mtx.unlock();
/base/theme/wallpaper_mgr/services/src/adapter/
Daccesstoken_adapter.cpp22 std::mutex AccessTokenProxy::mtx; member in OHOS::WallpaperMgrService::AccessTokenProxy
26 std::lock_guard<std::mutex> lock(mtx); in Set()
32 std::lock_guard<std::mutex> lock(mtx); in VerifyAccessToken()
Daccesstoken_adapter.h39 static std::mutex mtx; variable
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp574 mtx.lock(); in SetWallpaperByMap()
579 mtx.unlock(); in SetWallpaperByMap()
586 mtx.unlock(); in SetWallpaperByMap()
590 mtx.unlock(); in SetWallpaperByMap()
630 mtx.lock(); in SetWallpaperByFD()
635 mtx.unlock(); in SetWallpaperByFD()
642 mtx.unlock(); in SetWallpaperByFD()
646 mtx.unlock(); in SetWallpaperByFD()
676 mtx.lock(); in SetWallpaperBackupData()
680 mtx.unlock(); in SetWallpaperBackupData()
[all …]
/base/inputmethod/imf/services/src/
Dperuser_session.cpp90 std::lock_guard<std::recursive_mutex> lock(mtx); in AddClient()
98 std::lock_guard<std::recursive_mutex> lock(mtx); in UpdateClient()
126 std::lock_guard<std::recursive_mutex> lock(mtx); in RemoveClient()
320 std::lock_guard<std::recursive_mutex> lock(mtx); in GetClientInfo()
420 std::lock_guard<std::recursive_mutex> lock(mtx); in SendAgentToAllClients()
513 std::lock_guard<std::recursive_mutex> lock(mtx); in OnInputMethodSwitched()
/base/hiviewdfx/hilog/frameworks/libhilog/param/
Dproperties.cpp337 static shared_timed_mutex* mtx = new shared_timed_mutex; in GetDomainLevel() local
340 ReadLock lock(*mtx); in GetDomainLevel()
344 InsertLock lock(*mtx); in GetDomainLevel()
364 static shared_timed_mutex* mtx = new shared_timed_mutex; in GetTagLevel() local
367 ReadLock lock(*mtx); in GetTagLevel()
371 InsertLock lock(*mtx); in GetTagLevel()
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp45 std::mutex mtx; variable
76 mtx.unlock(); in OnReceiveEvent()
174 mtx.lock();
189 while (!mtx.try_lock()) {
200 mtx.unlock();
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dstring_utils_test.cpp75 AutoMutex mtx(*lock); in FuncMultiThread() local
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dstring_utils_test.cpp76 AutoMutex mtx(*lock); in FuncMultiThread() local
/base/inputmethod/imf/services/include/
Dperuser_session.h120 std::recursive_mutex mtx; // mutex to lock the operations among multi work threads variable
/base/theme/wallpaper_mgr/services/include/
Dwallpaper_service.h190 std::mutex mtx; variable
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_test.cpp823 mutex mtx; variable
832 auto checkCookie = [&mtx, &cv, &cnt, &start, &cookies, &timeouts](uint32_t cookie) { in __anon2093e9d50402()
833 unique_lock<mutex> lck(mtx); in __anon2093e9d50402()
854 unique_lock<mutex> lck(mtx);