/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/exception_controller/src/ |
D | exception_controller.c | 25 static HcMutex *g_mutex = NULL; variable 61 g_mutex->lock(g_mutex); in AddCallNum() 63 g_mutex->unlock(g_mutex); in AddCallNum() 82 g_mutex->lock(g_mutex); in SetThrowExceptionIndex() 85 g_mutex->unlock(g_mutex); in SetThrowExceptionIndex() 97 g_mutex = (HcMutex *)malloc(sizeof(HcMutex)); in InitExceptionController() 98 InitHcMutex(g_mutex); in InitExceptionController() 107 g_mutex->lock(g_mutex); in DestroyExceptionController() 111 g_mutex->unlock(g_mutex); in DestroyExceptionController() 112 DestroyHcMutex(g_mutex); in DestroyExceptionController() [all …]
|
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/memory_monitor/src/ |
D | memory_monitor.cpp | 58 static HcMutex *g_mutex = NULL; variable 65 g_mutex->lock(g_mutex); in HcMonitorMalloc() 77 g_mutex->unlock(g_mutex); in HcMonitorMalloc() 92 g_mutex->unlock(g_mutex); in HcMonitorMalloc() 100 g_mutex->lock(g_mutex); in HcMonitorFree() 108 g_mutex->unlock(g_mutex); in HcMonitorFree() 116 g_mutex->lock(g_mutex); in ReportMonitor() 125 g_mutex->unlock(g_mutex); in ReportMonitor() 139 g_mutex = static_cast<HcMutex *>(malloc(sizeof(HcMutex))); in HcInitMallocMonitor() 140 InitHcMutex(g_mutex); in HcInitMallocMonitor() [all …]
|
/base/security/device_security_level/services/msg/ |
D | dslm_messenger_wrapper.c | 27 static Mutex g_mutex = INITED_MUTEX; variable 45 InitMutex(&g_mutex); in InitMessenger() 46 LockMutex(&g_mutex); in InitMessenger() 48 UnlockMutex(&g_mutex); in InitMessenger() 58 LockMutex(&g_mutex); in DeinitMessenger() 60 UnlockMutex(&g_mutex); in DeinitMessenger() 64 UnlockMutex(&g_mutex); in DeinitMessenger() 70 LockMutex(&g_mutex); in GetMessengerStatus() 72 UnlockMutex(&g_mutex); in GetMessengerStatus() 76 UnlockMutex(&g_mutex); in GetMessengerStatus() [all …]
|
/base/security/device_auth/services/privacy_enhancement/src/ |
D | pseudonym_manager.c | 53 static HcMutex *g_mutex = NULL; variable 418 g_mutex->lock(g_mutex); in OnOsAccountUnlocked() 420 g_mutex->unlock(g_mutex); in OnOsAccountUnlocked() 440 g_mutex->lock(g_mutex); in OnOsAccountRemoved() 442 g_mutex->unlock(g_mutex); in OnOsAccountRemoved() 492 g_mutex->lock(g_mutex); in SaveOsAccountPseudonymDb() 496 g_mutex->unlock(g_mutex); in SaveOsAccountPseudonymDb() 502 g_mutex->unlock(g_mutex); in SaveOsAccountPseudonymDb() 505 g_mutex->unlock(g_mutex); in SaveOsAccountPseudonymDb() 514 g_mutex->lock(g_mutex); in DeletePseudonymInner() [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
D | dfx_ark.cpp | 39 static pthread_mutex_t g_mutex; variable 51 pthread_mutex_lock(&g_mutex); in GetArkNativeFrameInfo() 53 pthread_mutex_unlock(&g_mutex); in GetArkNativeFrameInfo() 61 pthread_mutex_unlock(&g_mutex); in GetArkNativeFrameInfo() 70 pthread_mutex_unlock(&g_mutex); in GetArkNativeFrameInfo() 74 pthread_mutex_unlock(&g_mutex); in GetArkNativeFrameInfo() 84 pthread_mutex_lock(&g_mutex); in StepArkManagedNativeFrame() 86 pthread_mutex_unlock(&g_mutex); in StepArkManagedNativeFrame() 94 pthread_mutex_unlock(&g_mutex); in StepArkManagedNativeFrame() 103 pthread_mutex_unlock(&g_mutex); in StepArkManagedNativeFrame() [all …]
|
/base/security/dataclassification/frameworks/datatransmitmgr/ |
D | dev_slinfo_list.c | 22 pthread_mutex_t g_mutex; variable 26 (void)pthread_mutex_lock(&g_mutex); in InitList() 29 (void)pthread_mutex_unlock(&g_mutex); in InitList() 35 (void)pthread_mutex_unlock(&g_mutex); in InitList() 50 (void)pthread_mutex_lock(&g_mutex); in PushListNode() 53 (void)pthread_mutex_unlock(&g_mutex); in PushListNode() 59 (void)pthread_mutex_unlock(&g_mutex); in PushListNode() 65 (void)pthread_mutex_lock(&g_mutex); in RemoveListNode() 81 (void)pthread_mutex_unlock(&g_mutex); in RemoveListNode() 86 (void)pthread_mutex_lock(&g_mutex); in ClearList() [all …]
|
/base/powermgr/powermgr_lite/services/src/power/ |
D | auto_suspend.c | 25 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 39 pthread_mutex_lock(&g_mutex); in WaitingSuspendCondition() 41 pthread_cond_wait(&g_cond, &g_mutex); in WaitingSuspendCondition() 43 pthread_mutex_unlock(&g_mutex); in WaitingSuspendCondition() 80 pthread_mutex_lock(&g_mutex); in IncSuspendBlockCounter() 83 pthread_mutex_unlock(&g_mutex); in IncSuspendBlockCounter() 88 pthread_mutex_lock(&g_mutex); in DecSuspendBlockCounter() 94 pthread_mutex_unlock(&g_mutex); in DecSuspendBlockCounter()
|
D | suspend_controller.c | 24 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 44 pthread_mutex_lock(&g_mutex); in EnableSuspend() 49 pthread_mutex_unlock(&g_mutex); in EnableSuspend() 55 pthread_mutex_lock(&g_mutex); in DisableSuspend() 60 pthread_mutex_unlock(&g_mutex); in DisableSuspend()
|
/base/powermgr/powermgr_lite/frameworks/src/ |
D | running_lock.c | 30 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 36 pthread_mutex_lock(&g_mutex); in AddRunningLock() 44 pthread_mutex_unlock(&g_mutex); in AddRunningLock() 48 pthread_mutex_unlock(&g_mutex); in AddRunningLock() 54 pthread_mutex_lock(&g_mutex); in RemoveRunningLock() 58 pthread_mutex_unlock(&g_mutex); in RemoveRunningLock() 63 pthread_mutex_unlock(&g_mutex); in RemoveRunningLock() 73 pthread_mutex_lock(&g_mutex); in IsRunningLockExisted() 75 pthread_mutex_unlock(&g_mutex); in IsRunningLockExisted()
|
/base/startup/init/interfaces/innerkits/token/src/token_impl_posix/ |
D | token.c | 25 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 53 pthread_mutex_lock(&g_mutex); in ReadToken() 55 pthread_mutex_unlock(&g_mutex); in ReadToken() 73 pthread_mutex_lock(&g_mutex); in WriteToken() 75 pthread_mutex_unlock(&g_mutex); in WriteToken()
|
/base/powermgr/powermgr_lite/services/src/ |
D | running_lock_mgr.c | 27 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 115 pthread_mutex_lock(&g_mutex); in RunningLockMgrAcquireEntry() 119 pthread_mutex_unlock(&g_mutex); in RunningLockMgrAcquireEntry() 130 pthread_mutex_lock(&g_mutex); in RunningLockMgrReleaseEntry() 134 pthread_mutex_unlock(&g_mutex); in RunningLockMgrReleaseEntry() 142 pthread_mutex_lock(&g_mutex); in RunningLockMgrGetLockCount() 144 pthread_mutex_unlock(&g_mutex); in RunningLockMgrGetLockCount() 152 pthread_mutex_lock(&g_mutex); in RunningLockMgrGetTotalLockCount() 156 pthread_mutex_unlock(&g_mutex); in RunningLockMgrGetTotalLockCount()
|
/base/powermgr/powermgr_lite/frameworks/src/mini/ |
D | power_manage.c | 26 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 34 pthread_mutex_lock(&g_mutex); in GetPowerManageInterface() 36 pthread_mutex_unlock(&g_mutex); in GetPowerManageInterface() 42 pthread_mutex_unlock(&g_mutex); in GetPowerManageInterface() 49 pthread_mutex_unlock(&g_mutex); in GetPowerManageInterface() 52 pthread_mutex_unlock(&g_mutex); in GetPowerManageInterface()
|
/base/powermgr/battery_lite/frameworks/native/src/mini/ |
D | battery_framework.c | 22 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 27 pthread_mutex_lock(&g_mutex); in GetBatteryInterface() 29 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 34 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 40 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 43 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface()
|
/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | selinux_parameter.c | 26 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 48 pthread_mutex_lock(&g_mutex); in InitParamSelinux() 50 pthread_mutex_unlock(&g_mutex); in InitParamSelinux() 54 pthread_mutex_unlock(&g_mutex); in InitParamSelinux()
|
/base/powermgr/powermgr_lite/frameworks/src/small/ |
D | power_screen_saver.c | 36 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 73 pthread_mutex_lock(&g_mutex); in GetScreenSaverProxyInterface() 75 pthread_mutex_unlock(&g_mutex); in GetScreenSaverProxyInterface() 84 pthread_mutex_unlock(&g_mutex); in GetScreenSaverProxyInterface() 91 pthread_mutex_unlock(&g_mutex); in GetScreenSaverProxyInterface() 94 pthread_mutex_unlock(&g_mutex); in GetScreenSaverProxyInterface()
|
D | power_manage.c | 37 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable 84 pthread_mutex_lock(&g_mutex); in GetPowerManageProxyInterface() 86 pthread_mutex_unlock(&g_mutex); in GetPowerManageProxyInterface() 95 pthread_mutex_unlock(&g_mutex); in GetPowerManageProxyInterface() 102 pthread_mutex_unlock(&g_mutex); in GetPowerManageProxyInterface() 105 pthread_mutex_unlock(&g_mutex); in GetPowerManageProxyInterface()
|
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/ |
D | backtrace_local_test.cpp | 152 std::mutex g_mutex; variable 156 g_mutex.lock(); in Test002() 157 g_mutex.unlock(); in Test002() 181 g_mutex.lock(); 199 g_mutex.unlock(); 267 g_mutex.lock(); 282 g_mutex.unlock();
|
D | catchframe_local_test.cpp | 167 std::mutex g_mutex; variable 171 g_mutex.lock(); in Test002() 172 g_mutex.unlock(); in Test002() 194 g_mutex.lock(); 212 g_mutex.unlock();
|
/base/sensors/sensor/frameworks/native/src/ |
D | geomagnetic_field.cpp | 99 std::mutex g_mutex; variable 118 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in GeomagneticField() 260 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainX() 266 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainY() 272 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainZ() 278 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainGeomagneticDip() 295 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainDeflectionAngle() 301 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainLevelIntensity() 308 std::lock_guard<std::mutex> geomagneticLock(g_mutex); in ObtainTotalIntensity()
|
/base/startup/init/test/moduletest/ |
D | hookmgr_moduletest.cpp | 28 mutex g_mutex; variable 52 lock_guard<std::mutex> lg(g_mutex); in OhosTestHookMultiThread() 59 lock_guard<std::mutex> lg(g_mutex); in OhosTestHookMultiThreadAnother()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_userinfo.cpp | 35 std::mutex g_mutex; variable 64 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetUserId() 92 std::lock_guard<std::mutex> lockGuard(g_mutex); in RemoveUserId() 121 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetUserProperty() 149 std::lock_guard<std::mutex> lockGuard(g_mutex); in RemoveUserProperty()
|
D | hiappevent_config.cpp | 45 std::mutex g_mutex; variable 164 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetDisable() 172 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetMaxStorageSize() 180 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetStorageDir()
|
D | hiappevent_write.cpp | 34 std::mutex g_mutex; variable 86 std::lock_guard<std::mutex> lockGuard(g_mutex); in WriteEvent()
|
/base/powermgr/battery_lite/frameworks/native/src/small/ |
D | battery_framework.c | 217 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; in GetBatteryInterface() local 220 pthread_mutex_lock(&g_mutex); in GetBatteryInterface() 222 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 229 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 235 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface() 238 pthread_mutex_unlock(&g_mutex); in GetBatteryInterface()
|
/base/powermgr/thermal_manager/utils/native/src/ |
D | file_operation.cpp | 30 static std::mutex g_mutex; variable 87 std::lock_guard<std::mutex> lck(g_mutex); in ReadFile()
|