Home
last modified time | relevance | path

Searched refs:g_mutex (Results 1 - 25 of 43) sorted by relevance

12

/base/security/device_security_level/services/msg/
H A 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/test/unittest/tdd_framework/tdd_helper/exception_controller/src/
H A Dexception_controller.c25 static HcMutex *g_mutex = NULL; variable
61 (void)LockHcMutex(g_mutex); in AddCallNum()
63 UnlockHcMutex(g_mutex); in AddCallNum()
82 (void)LockHcMutex(g_mutex); in SetThrowExceptionIndex()
85 UnlockHcMutex(g_mutex); in SetThrowExceptionIndex()
97 g_mutex = (HcMutex *)malloc(sizeof(HcMutex)); in InitExceptionController()
98 InitHcMutex(g_mutex); in InitExceptionController()
107 (void)LockHcMutex(g_mutex); in DestroyExceptionController()
111 UnlockHcMutex(g_mutex); in DestroyExceptionController()
112 DestroyHcMutex(g_mutex); in DestroyExceptionController()
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/
H A Ddlp_fuse_fd.c28 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
35 pthread_mutex_lock(&g_mutex); in GetDlpFuseFd()
37 pthread_cond_timedwait(&g_cond, &g_mutex, &ts); in GetDlpFuseFd()
39 pthread_mutex_unlock(&g_mutex); in GetDlpFuseFd()
46 pthread_mutex_lock(&g_mutex); in SetDlpFuseFd()
54 pthread_mutex_unlock(&g_mutex); in SetDlpFuseFd()
59 pthread_mutex_lock(&g_mutex); in CloseDlpFuseFd()
66 pthread_mutex_unlock(&g_mutex); in CloseDlpFuseFd()
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/memory_monitor/src/
H A Dmemory_monitor.cpp58 static HcMutex *g_mutex = NULL; variable
65 (void)LockHcMutex(g_mutex); in HcMonitorMalloc()
77 UnlockHcMutex(g_mutex); in HcMonitorMalloc()
92 UnlockHcMutex(g_mutex); in HcMonitorMalloc()
100 (void)LockHcMutex(g_mutex); in HcMonitorFree()
108 UnlockHcMutex(g_mutex); in HcMonitorFree()
116 (void)LockHcMutex(g_mutex); in ReportMonitor()
125 UnlockHcMutex(g_mutex); in ReportMonitor()
139 g_mutex = static_cast<HcMutex *>(malloc(sizeof(HcMutex))); in HcInitMallocMonitor()
140 InitHcMutex(g_mutex); in HcInitMallocMonitor()
[all...]
/base/security/dataclassification/frameworks/datatransmitmgr/
H A 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()
79 (void)pthread_mutex_unlock(&g_mutex); in RemoveListNode()
84 (void)pthread_mutex_lock(&g_mutex); in ClearList()
[all...]
/base/powermgr/powermgr_lite/services/src/power/
H A 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()
H A 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/security/device_auth/services/privacy_enhancement/src/
H A Dpseudonym_manager.c53 static HcMutex *g_mutex = NULL; variable
418 (void)LockHcMutex(g_mutex); in OnOsAccountUnlocked()
420 UnlockHcMutex(g_mutex); in OnOsAccountUnlocked()
440 (void)LockHcMutex(g_mutex); in OnOsAccountRemoved()
442 UnlockHcMutex(g_mutex); in OnOsAccountRemoved()
492 (void)LockHcMutex(g_mutex); in SaveOsAccountPseudonymDb()
496 UnlockHcMutex(g_mutex); in SaveOsAccountPseudonymDb()
502 UnlockHcMutex(g_mutex); in SaveOsAccountPseudonymDb()
505 UnlockHcMutex(g_mutex); in SaveOsAccountPseudonymDb()
514 (void)LockHcMutex(g_mutex); in DeletePseudonymInner()
[all...]
/base/startup/init/interfaces/innerkits/token/src/token_impl_posix/
H A 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/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_userinfo.cpp39 std::mutex g_mutex; member
74 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetUserId()
85 std::lock_guard<std::mutex> lockGuard(g_mutex); in GetUserId()
103 std::lock_guard<std::mutex> lockGuard(g_mutex); in RemoveUserId()
132 std::lock_guard<std::mutex> lockGuard(g_mutex); in SetUserProperty()
143 std::lock_guard<std::mutex> lockGuard(g_mutex); in GetUserProperty()
161 std::lock_guard<std::mutex> lockGuard(g_mutex); in RemoveUserProperty()
190 std::lock_guard<std::mutex> lockGuard(g_mutex); in GetUserIds()
203 std::lock_guard<std::mutex> lockGuard(g_mutex); in GetUserProperties()
216 std::lock_guard<std::mutex> lockGuard(g_mutex); in GetUserIdVersion()
[all...]
H A Dhiappevent_config.cpp49 ffrt::mutex g_mutex; member
167 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in SetDisable()
173 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in SetMaxStorageSize()
184 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in GetDisable()
190 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in GetMaxStorageSize()
196 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in GetStorageDir()
217 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in GetRunningId()
H A Dhiappevent_write.cpp41 ffrt::mutex g_mutex; member
78 std::lock_guard<ffrt::mutex> lockGuard(g_mutex); in WriteEvent()
/base/powermgr/powermgr_lite/frameworks/src/
H A 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/powermgr/powermgr_lite/services/src/
H A 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/security/selinux_adapter/framework/policycoreutils/src/
H A 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/
H A 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()
H A 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/powermgr/powermgr_lite/frameworks/src/mini/
H A 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/
H A 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/startup/appspawn/interfaces/innerkits/permission/
H A Dappspawn_mount_permission.c36 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
150 pthread_mutex_lock(&g_mutex); in LoadPermission()
153 pthread_mutex_unlock(&g_mutex); in LoadPermission()
158 pthread_mutex_unlock(&g_mutex); in LoadPermission()
168 pthread_mutex_unlock(&g_mutex); in LoadPermission()
174 pthread_mutex_lock(&g_mutex); in DeletePermission()
177 pthread_mutex_unlock(&g_mutex); in DeletePermission()
183 pthread_mutex_unlock(&g_mutex); in DeletePermission()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_ark.cpp39 pthread_mutex_t g_mutex; member
67 pthread_mutex_lock(&g_mutex); \
81 pthread_mutex_unlock(&g_mutex); \
124 pthread_mutex_lock(&g_mutex); in ArkDestoryLocal()
126 pthread_mutex_unlock(&g_mutex); in ArkDestoryLocal()
130 pthread_mutex_unlock(&g_mutex); in ArkDestoryLocal()
/base/startup/init/test/moduletest/
H A Dhookmgr_moduletest.cpp28 mutex g_mutex; member
52 lock_guard<std::mutex> lg(g_mutex); in OhosTestHookMultiThread()
59 lock_guard<std::mutex> lg(g_mutex); in OhosTestHookMultiThreadAnother()
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/
H A Dbacktrace_local_test.cpp116 std::mutex g_mutex; member
120 g_mutex.lock(); in Test002()
121 g_mutex.unlock(); in Test002()
139 g_mutex.lock(); in HWTEST_F()
161 g_mutex.unlock(); in HWTEST_F()
177 g_mutex.lock(); in HWTEST_F()
193 g_mutex.unlock(); in HWTEST_F()
209 g_mutex.lock(); in HWTEST_F()
227 g_mutex.unlock(); in HWTEST_F()
/base/sensors/sensor/frameworks/native/src/
H A Dgeomagnetic_field.cpp99 std::mutex g_mutex; member
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/powermgr/battery_lite/frameworks/native/src/small/
H A 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()

Completed in 11 milliseconds

12