Home
last modified time | relevance | path

Searched refs:g_mutex (Results 1 – 25 of 34) sorted by relevance

12

/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/exception_controller/src/
Dexception_controller.c25 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/
Dmemory_monitor.cpp58 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/
Ddslm_messenger_wrapper.c27 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/
Dpseudonym_manager.c53 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/
Ddfx_ark.cpp39 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/
Ddev_slinfo_list.c22 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/
Dauto_suspend.c25 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()
Dsuspend_controller.c24 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/
Drunning_lock.c30 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/
Dtoken.c25 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/
Drunning_lock_mgr.c27 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/
Dpower_manage.c26 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/
Dbattery_framework.c22 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/
Dselinux_parameter.c26 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/
Dpower_screen_saver.c36 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()
Dpower_manage.c37 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/
Dbacktrace_local_test.cpp152 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();
Dcatchframe_local_test.cpp167 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/
Dgeomagnetic_field.cpp99 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/
Dhookmgr_moduletest.cpp28 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/
Dhiappevent_userinfo.cpp35 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()
Dhiappevent_config.cpp45 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()
Dhiappevent_write.cpp34 std::mutex g_mutex; variable
86 std::lock_guard<std::mutex> lockGuard(g_mutex); in WriteEvent()
/base/powermgr/battery_lite/frameworks/native/src/small/
Dbattery_framework.c217 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/
Dfile_operation.cpp30 static std::mutex g_mutex; variable
87 std::lock_guard<std::mutex> lck(g_mutex); in ReadFile()

12