Home
last modified time | relevance | path

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

/drivers/peripheral/wlan/hal/src/
Dwifi_hal_util.c28 OSAL_DECLARE_MUTEX(g_mutex);
35 ret = OsalMutexInit(&g_mutex); in HalMutexInit()
49 ret = OsalMutexDestroy(&g_mutex); in HalMutexDestroy()
61 if (OsalMutexLock(&g_mutex) != HDF_SUCCESS) { in HalMutexLock()
68 if (OsalMutexUnlock(&g_mutex) != HDF_SUCCESS) { in HalMutexUnlock()
/drivers/peripheral/wlan/chip/hdi_service/
Dhdi_sync_util.cpp19 std::recursive_mutex g_mutex; variable
30 return std::unique_lock<std::recursive_mutex>{g_mutex}; in AcquireGlobalLock()
/drivers/peripheral/codec/hal/src/
Dcodec_death_recipient.cpp31 static std::mutex g_mutex; variable
36 std::lock_guard<std::mutex> lk(g_mutex); in RegisterService()
59 std::lock_guard<std::mutex> lk(g_mutex); in CleanMapperOfDiedService()
90 std::lock_guard<std::mutex> lk(g_mutex); in RemoveDestoryedComponent()
/drivers/external_device_manager/frameworks/ddk/base/
Dddk_api.cpp29 std::mutex g_mutex; variable
63 std::lock_guard<std::mutex> lock(g_mutex); in OH_DDK_CreateAshmem()
90 std::lock_guard<std::mutex> lock(g_mutex); in OH_DDK_MapAshmem()
115 std::lock_guard<std::mutex> lock(g_mutex); in OH_DDK_UnmapAshmem()
129 std::lock_guard<std::mutex> lock(g_mutex); in OH_DDK_DestroyAshmem()
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_death_recipient.cpp30 static std::mutex g_mutex; variable
34 std::unique_lock<std::mutex> lk(g_mutex, std::defer_lock); in CleanResourceOfDiedService()
58 std::unique_lock<std::mutex> lk(g_mutex); in RegisterDeathRecipientService()
86 std::unique_lock<std::mutex> lk(g_mutex); in RemoveMapperOfDestoryedComponent()
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
Dhdi_wpa_hal.c61 static pthread_mutex_t g_mutex; variable
198 pthread_mutex_lock(&g_mutex); in GetWifiWpaGlobalInterface()
202 pthread_mutex_unlock(&g_mutex); in GetWifiWpaGlobalInterface()
207 pthread_mutex_unlock(&g_mutex); in GetWifiWpaGlobalInterface()
216 pthread_mutex_unlock(&g_mutex); in GetWifiWpaGlobalInterface()
/drivers/peripheral/location/gnss/hdi_service/
Dgnss_interface_impl.cpp46 std::mutex g_mutex; variable
62 std::unique_lock<std::mutex> lock(g_mutex); in NiNotifyCallback()
98 std::unique_lock<std::mutex> lock(g_mutex); in LocationUpdate()
122 std::unique_lock<std::mutex> lock(g_mutex); in StatusCallback()
138 std::unique_lock<std::mutex> lock(g_mutex); in SvStatusCallback()
166 std::unique_lock<std::mutex> lock(g_mutex); in NmeaCallback()
245 std::unique_lock<std::mutex> lock(g_mutex); in EnableGnss()
286 std::unique_lock<std::mutex> lock(g_mutex); in DisableGnss()
432 std::unique_lock<std::mutex> lock(g_mutex); in ResetGnssDeathRecipient()
/drivers/peripheral/location/agnss/hdi_service/
Dagnss_interface_impl.cpp40 std::mutex g_mutex; variable
61 std::unique_lock<std::mutex> lock(g_mutex); in OnStatusChangedCb()
73 std::unique_lock<std::mutex> lock(g_mutex); in GetSetidCb()
85 std::unique_lock<std::mutex> lock(g_mutex); in GetRefLocationidCb()
128 std::unique_lock<std::mutex> lock(g_mutex); in SetAgnssCallback()
287 std::unique_lock<std::mutex> lock(g_mutex); in ResetAgnssDeathRecipient()
300 std::unique_lock<std::mutex> lock(g_mutex); in ResetAgnss()
/drivers/peripheral/user_auth/hdi_service/service/
Duser_auth_interface_service.cpp53 static std::mutex g_mutex; variable
96 std::lock_guard<std::mutex> lock(g_mutex); in UserAuthInterfaceImplGetInstance()
104 std::lock_guard<std::mutex> lock(g_mutex); in Init()
519 std::lock_guard<std::mutex> lock(g_mutex); in BeginAuthentication()
669 std::lock_guard<std::mutex> lock(g_mutex); in UpdateAuthenticationResultInner()
712 std::lock_guard<std::mutex> lock(g_mutex); in CancelAuthentication()
732 std::lock_guard<std::mutex> lock(g_mutex); in BeginIdentification()
770 std::lock_guard<std::mutex> lock(g_mutex); in UpdateIdentificationResult()
792 std::lock_guard<std::mutex> lock(g_mutex); in CancelIdentification()
800 std::lock_guard<std::mutex> lock(g_mutex); in GetAvailableStatus()
[all …]
/drivers/external_device_manager/frameworks/ddk/hid/
Dinput_emit_event.cpp29 std::mutex g_mutex; variable
85 std::lock_guard<std::mutex> lock(g_mutex); in Connect()
169 std::lock_guard<std::mutex> lock(g_mutex); in CacheDeviceInfor()
268 std::lock_guard<std::mutex> lock(g_mutex); in OH_Hid_EmitEvent()
288 std::lock_guard<std::mutex> lock(g_mutex); in OH_Hid_DestroyDevice()
/drivers/peripheral/power/interfaces/hdi_service/src/
Dpower_interface_impl.cpp68 static std::mutex g_mutex; variable
126 std::lock_guard<std::mutex> lock(g_mutex); in RegisterCallback()
229 std::lock_guard<std::mutex> lock(g_mutex); in DoSuspend()
330 std::lock_guard<std::mutex> lock(g_mutex); in SuspendBlock()
344 std::lock_guard<std::mutex> lock(g_mutex); in SuspendUnblock()
/drivers/peripheral/sensor/hdi_impl/
Dsensor_impl.cpp36 std::mutex g_mutex; variable
41 std::lock_guard<std::mutex> lock(g_mutex); in ReportSensorEventsData()
267 std::lock_guard<std::mutex> lock(g_mutex); in Register()
309 std::lock_guard<std::mutex> lock(g_mutex); in Unregister()
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/
Dhdi_hostapd_hal.c84 static pthread_mutex_t g_mutex; variable
934 pthread_mutex_lock(&g_mutex); in GetWifiHostapdDev()
939 pthread_mutex_unlock(&g_mutex); in GetWifiHostapdDev()
944 pthread_mutex_unlock(&g_mutex); in GetWifiHostapdDev()
951 pthread_mutex_unlock(&g_mutex); in GetWifiHostapdDev()
983 pthread_mutex_unlock(&g_mutex); in GetWifiHostapdDev()
986 pthread_mutex_unlock(&g_mutex); in GetWifiHostapdDev()
/drivers/peripheral/thermal/test/unittest/
Dhdf_thermal_hdi_test.cpp73 std::mutex g_mutex; variable
109 std::lock_guard<std::mutex> lck(g_mutex); in ReadFile()
/drivers/peripheral/audio/test/sample/
Didl_render.c70 pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
206 pthread_mutex_lock(&g_mutex); in StopAudioFiles()
209 pthread_mutex_unlock(&g_mutex); in StopAudioFiles()
356 pthread_cond_wait(&g_functionCond, &g_mutex); in FrameStart()
888 pthread_mutex_lock(&g_mutex); in SetRenderResume()
891 pthread_mutex_unlock(&g_mutex); in SetRenderResume()
/drivers/peripheral/input/hdi_service/
Dinput_interfaces_impl.cpp38 std::mutex g_mutex; variable
473 std::lock_guard<std::mutex> lock(g_mutex); in RegisterReportCallback()
519 std::lock_guard<std::mutex> lock(g_mutex); in RegisterHotPlugCallback()
539 std::lock_guard<std::mutex> lock(g_mutex); in UnregisterHotPlugCallback()
/drivers/peripheral/power/test/unittest/src/
Dhdf_power_hdi_test.cpp30 std::mutex g_mutex; variable