Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 1164) sorted by relevance

12345678910>>...47

/base/security/huks/utils/mutex/
Dhks_mutex.c25 pthread_mutex_t mutex; member
30 HksMutex *mutex = (HksMutex *)HksMalloc(sizeof(HksMutex)); in HksMutexCreate() local
31 if (mutex != NULL) { in HksMutexCreate()
32 int result = pthread_mutex_init(&mutex->mutex, NULL); in HksMutexCreate()
34 HksFree(mutex); in HksMutexCreate()
35 mutex = NULL; in HksMutexCreate()
38 return mutex; in HksMutexCreate()
41 int32_t HksMutexLock(HksMutex *mutex) in HksMutexLock() argument
43 HKS_IF_NULL_RETURN(mutex, 1) in HksMutexLock()
45 return pthread_mutex_lock(&mutex->mutex); in HksMutexLock()
[all …]
Dhks_mutex.h28 int32_t HksMutexLock(HksMutex *mutex);
29 int32_t HksMutexUnlock(HksMutex *mutex);
30 void HksMutexClose(HksMutex *mutex);
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
Dhc_mutex.c24 static int HcMutexLock(HcMutex *mutex) in HcMutexLock() argument
26 if (mutex == NULL) { in HcMutexLock()
29 int res = pthread_mutex_lock(&mutex->mutex); in HcMutexLock()
36 static void HcMutexUnlock(HcMutex *mutex) in HcMutexUnlock() argument
38 if (mutex == NULL) { in HcMutexUnlock()
41 int res = pthread_mutex_unlock(&mutex->mutex); in HcMutexUnlock()
47 int32_t InitHcMutex(struct HcMutexT *mutex) in InitHcMutex() argument
49 if (mutex == NULL) { in InitHcMutex()
52 int res = pthread_mutex_init(&mutex->mutex, NULL); in InitHcMutex()
57 mutex->lock = HcMutexLock; in InitHcMutex()
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_condition.c24 int Wait(pthread_cond_t* cond, HcMutex* mutex) in Wait() argument
26 if (cond == NULL || mutex == NULL) { in Wait()
29 int res = pthread_cond_wait(cond, &mutex->mutex); in Wait()
49 if (hcCond == NULL || hcCond->mutex == NULL) { in HcCondWaitWithoutLock()
58 ret = Wait(&hcCond->cond, hcCond->mutex); in HcCondWaitWithoutLock()
67 if (hcCond == NULL || hcCond->mutex == NULL) { in HcCondNotifyWithoutLock()
84 if (hcCond->mutex == NULL) { in HcCondWait()
88 hcCond->mutex->lock(hcCond->mutex); in HcCondWait()
91 hcCond->mutex->unlock(hcCond->mutex); in HcCondWait()
96 ret = Wait(&hcCond->cond, hcCond->mutex); in HcCondWait()
[all …]
/base/security/device_security_level/baselib/utils/include/
Dutils_mutex.h41 pthread_mutex_t mutex; member
44 inline static void InitMutex(Mutex *mutex) in InitMutex() argument
46 (void)pthread_mutex_init(&mutex->mutex, NULL); in InitMutex()
49 inline static void InitRecursiveMutex(Mutex *mutex) in InitRecursiveMutex() argument
54 (void)pthread_mutex_init(&mutex->mutex, &attr); in InitRecursiveMutex()
57 inline static void LockMutex(Mutex *mutex) in LockMutex() argument
59 int ret = pthread_mutex_lock(&(mutex->mutex)); in LockMutex()
65 inline static void UnlockMutex(Mutex *mutex) in UnlockMutex() argument
67 int ret = pthread_mutex_unlock(&(mutex->mutex)); in UnlockMutex()
/base/startup/init/services/param/liteos/
Dparam_osadp.c183 INIT_LOCAL_API int ParamMutexCreate(ParamMutex *mutex) in ParamMutexCreate() argument
185 PARAM_CHECK(mutex != NULL, return -1, "Invalid mutex"); in ParamMutexCreate()
189 pthread_mutex_init(&mutex->mutex, &mutexattr); in ParamMutexCreate()
192 INIT_LOCAL_API int ParamMutexPend(ParamMutex *mutex) in ParamMutexPend() argument
194 PARAM_CHECK(mutex != NULL, return -1, "Invalid mutex"); in ParamMutexPend()
195 if (pthread_mutex_lock(&mutex->mutex) != 0) { in ParamMutexPend()
201 INIT_LOCAL_API int ParamMutexPost(ParamMutex *mutex) in ParamMutexPost() argument
203 PARAM_CHECK(mutex != NULL, return -1, "Invalid mutex"); in ParamMutexPost()
204 pthread_mutex_unlock(&mutex->mutex); in ParamMutexPost()
208 INIT_LOCAL_API int ParamMutexDelete(ParamMutex *mutex) in ParamMutexDelete() argument
[all …]
/base/security/huks/utils/condition/
Dhks_condition.c28 pthread_mutex_t mutex; member
36 int32_t ret = pthread_mutex_lock(&condition->mutex); in HksConditionWait()
42 pthread_mutex_unlock(&condition->mutex); in HksConditionWait()
46 ret = pthread_cond_wait(&condition->cond, &condition->mutex); in HksConditionWait()
49 pthread_mutex_unlock(&condition->mutex); in HksConditionWait()
58 int32_t ret = pthread_mutex_lock(&condition->mutex); in HksConditionNotify()
69 pthread_mutex_unlock(&condition->mutex); in HksConditionNotify()
79 int32_t ret = pthread_mutex_init(&condition->mutex, NULL); in HksConditionCreate()
90 pthread_mutex_destroy(&condition->mutex); in HksConditionCreate()
102 pthread_mutex_destroy(&condition->mutex); in HksConditionDestroy()
/base/security/device_auth/deps_adapter/os_adapter/interfaces/
Dhc_mutex.h27 int (*lock)(struct HcMutexT* mutex);
28 void (*unlock)(struct HcMutexT* mutex);
29 pthread_mutex_t mutex; member
32 int32_t InitHcMutex(HcMutex* mutex);
33 void DestroyHcMutex(HcMutex* mutex);
/base/telephony/cellular_call/services/manager/src/
Dcellular_call_register.cpp45 std::lock_guard<std::mutex> lock(mutex_); in ReportCallsInfo()
65 std::lock_guard<std::mutex> lock(mutex_); in RegisterCallManagerCallBack()
75 std::lock_guard<std::mutex> lock(mutex_); in ReportSingleCallInfo()
85 std::lock_guard<std::mutex> lock(mutex_); in UnRegisterCallManagerCallBack()
93 std::lock_guard<std::mutex> lock(mutex_); in ReportEventResultInfo()
105 std::lock_guard<std::mutex> lock(mutex_); in ReportGetWaitingResult()
116 std::lock_guard<std::mutex> lock(mutex_); in ReportSetWaitingResult()
128 std::lock_guard<std::mutex> lock(mutex_); in ReportGetRestrictionResult()
139 std::lock_guard<std::mutex> lock(mutex_); in ReportSetRestrictionResult()
153 std::lock_guard<std::mutex> lock(mutex_); in ReportGetTransferResult()
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_work_queue.c32 pthread_mutex_t mutex; member
55 (void)pthread_mutex_lock(&queue->mutex); in WorkQueueThread()
58 pthread_cond_wait(&queue->cond, &queue->mutex); in WorkQueueThread()
69 pthread_mutex_unlock(&queue->mutex); in WorkQueueThread()
72 (void)pthread_mutex_lock(&queue->mutex); in WorkQueueThread()
83 pthread_mutex_unlock(&queue->mutex); in WorkQueueThread()
101 int32_t iRet = pthread_mutex_init(&(queue->mutex), NULL); in CreateWorkQueue()
109 (void)pthread_mutex_destroy(&(queue->mutex)); in CreateWorkQueue()
117 (void)pthread_mutex_destroy(&(queue->mutex)); in CreateWorkQueue()
131 (void)pthread_mutex_lock(&queue->mutex); in DestroyWorkQueue()
[all …]
/base/telephony/core_service/test/unittest/core_service_gtest/
Dnetwork_search_test_callback_stub.h67 std::mutex getNetworkModeMutex_;
69 std::mutex setNetworkModeMutex_;
71 std::mutex setRadioStateMutex_;
73 std::mutex getRadioStateMutex_;
75 std::mutex getNetworkSearchInformationMutex_;
77 std::mutex setPreferredNetworkMutex_;
79 std::mutex getPreferredNetworkMutex_;
81 std::mutex setNrOptionModeMutex_;
83 std::mutex getNrOptionModeMutex_;
/base/telephony/call_manager/frameworks/native/src/
Dcall_ability_callback.cpp29 std::lock_guard<std::mutex> lock(mutex_); in SetProcessCallback()
40 std::lock_guard<std::mutex> lock(mutex_); in OnCallDetailsChange()
49 std::lock_guard<std::mutex> lock(mutex_); in OnCallEventChange()
58 std::lock_guard<std::mutex> lock(mutex_); in OnCallDisconnectedCause()
67 std::lock_guard<std::mutex> lock(mutex_); in OnReportAsyncResults()
76 std::lock_guard<std::mutex> lock(mutex_); in OnReportMmiCodeResult()
85 std::lock_guard<std::mutex> lock(mutex_); in OnOttCallRequest()
94 std::lock_guard<std::mutex> lock(mutex_); in OnReportAudioDeviceChange()
103 std::lock_guard<std::mutex> lock(mutex_); in OnReportPostDialDelay()
Dcall_manager_proxy.cpp63 std::lock_guard<std::mutex> lock(mutex_); in Init()
130 std::lock_guard<std::mutex> lock(mutex_); in UnInit()
140 std::lock_guard<std::mutex> lock(mutex_); in RegisterCallBack()
177 std::lock_guard<std::mutex> lock(mutex_); in UnRegisterCallBack()
274 std::lock_guard<std::mutex> lock(mutex_); in ReRegisterCallBack()
303 std::lock_guard<std::mutex> lock(mutex_); in DialCall()
318 std::lock_guard<std::mutex> lock(mutex_); in AnswerCall()
333 std::lock_guard<std::mutex> lock(mutex_); in RejectCall()
348 std::lock_guard<std::mutex> lock(mutex_); in HangUpCall()
363 std::lock_guard<std::mutex> lock(mutex_); in GetCallState()
[all …]
/base/telephony/call_manager/services/call/src/
Dcall_state_listener.cpp38 std::lock_guard<std::mutex> lock(mutex_); in AddOneObserver()
52 std::lock_guard<std::mutex> lock(mutex_); in RemoveOneObserver()
59 std::lock_guard<std::mutex> lock(mutex_); in RemoveAllObserver()
70 std::lock_guard<std::mutex> lock(mutex_); in NewCallCreated()
78 std::lock_guard<std::mutex> lock(mutex_); in CallDestroyed()
91 std::lock_guard<std::mutex> lock(mutex_); in CallStateUpdated()
103 std::lock_guard<std::mutex> lock(mutex_); in IncomingCallHungUp()
115 std::lock_guard<std::mutex> lock(mutex_); in IncomingCallActivated()
123 std::lock_guard<std::mutex> lock(mutex_); in CallEventUpdated()
Dcall_base.cpp85 std::lock_guard<std::mutex> lock(mutex_); in GetCallAttributeBaseInfo()
119 std::lock_guard<std::mutex> lock(mutex_); in GetCallID()
130 std::lock_guard<std::mutex> lock(mutex_); in GetCallRunningState()
137 std::lock_guard<std::mutex> lock(mutex_); in SetTelCallState()
242 std::lock_guard<std::mutex> lock(mutex_); in GetTelCallState()
248 std::lock_guard<std::mutex> lock(mutex_); in SetTelConferenceState()
255 std::lock_guard<std::mutex> lock(mutex_); in GetTelConferenceState()
261 std::lock_guard<std::mutex> lock(mutex_); in GetVideoStateType()
267 std::lock_guard<std::mutex> lock(mutex_); in SetVideoStateType()
273 std::lock_guard<std::mutex> lock(mutex_); in SetPolicyFlag()
[all …]
Dconference_base.cpp34 std::lock_guard<std::mutex> lock(conferenceMutex_); in ~ConferenceBase()
40 std::lock_guard<std::mutex> lock(conferenceMutex_); in GetMainCall()
55 std::lock_guard<std::mutex> lock(conferenceMutex_); in SetMainCall()
63 std::lock_guard<std::mutex> lock(conferenceMutex_); in GetConferenceState()
69 std::lock_guard<std::mutex> lock(conferenceMutex_); in SetConferenceState()
77 std::lock_guard<std::mutex> lock(conferenceMutex_); in GetSubCallIdList()
97 std::lock_guard<std::mutex> lock(conferenceMutex_); in GetCallIdListForConference()
Dcall_object_manager.cpp27 std::mutex CallObjectManager::listMutex_;
50 std::lock_guard<std::mutex> lock(listMutex_); in AddOneCallObject()
76 std::lock_guard<std::mutex> lock(listMutex_); in DeleteOneCallObject()
97 std::lock_guard<std::mutex> lock(listMutex_); in DeleteOneCallObject()
108 std::lock_guard<std::mutex> lock(listMutex_); in GetOneCallObject()
126 std::lock_guard<std::mutex> lock(listMutex_); in GetOneCallObject()
142 std::lock_guard<std::mutex> lock(listMutex_); in HasNewCall()
159 std::lock_guard<std::mutex> lock(listMutex_); in IsNewCallAllowedCreate()
178 std::lock_guard<std::mutex> lock(listMutex_); in GetCarrierCallList()
191 std::lock_guard<std::mutex> lock(listMutex_); in HasRingingMaximum()
[all …]
/base/location/interfaces/inner_api/include/
Dsatellite_status.h48 std::unique_lock<std::mutex> lock(mutex_); in SetSatelliteIds()
56 std::unique_lock<std::mutex> lock(mutex_); in SetSatelliteId()
67 std::unique_lock<std::mutex> lock(mutex_); in SetCarrierToNoiseDensitys()
75 std::unique_lock<std::mutex> lock(mutex_); in SetCarrierToNoiseDensity()
86 std::unique_lock<std::mutex> lock(mutex_); in SetAltitudes()
94 std::unique_lock<std::mutex> lock(mutex_); in SetAltitude()
105 std::unique_lock<std::mutex> lock(mutex_); in SetAzimuths()
113 std::unique_lock<std::mutex> lock(mutex_); in SetAzimuth()
124 std::unique_lock<std::mutex> lock(mutex_); in SetCarrierFrequencies()
132 std::unique_lock<std::mutex> lock(mutex_); in SetCarrierFrequencie()
[all …]
/base/request/request/frameworks/js/napi/include/
Dblock_queue.h33 std::lock_guard<std::mutex> lock(queuesMutex_); in Pop()
40 std::lock_guard<std::mutex> lock(queuesMutex_); in Push()
47 std::unique_lock<std::mutex> lock(cvMutex_); in Wait()
54 std::lock_guard<std::mutex> lock(queuesMutex_); in IsReady()
60 std::mutex queuesMutex_;
62 std::mutex cvMutex_;
/base/inputmethod/imf/common/
Dblock_queue.h34 std::lock_guard<std::mutex> lock(queuesMutex_); in Pop()
41 std::lock_guard<std::mutex> lock(queuesMutex_); in Push()
48 std::unique_lock<std::mutex> lock(cvMutex_); in Wait()
55 std::lock_guard<std::mutex> lock(queuesMutex_); in IsReady()
61 std::mutex queuesMutex_;
63 std::mutex cvMutex_;
/base/useriam/user_auth_framework/services/context/src/
Dcontext_pool_impl.cpp43 mutable std::mutex poolMutex_;
54 std::lock_guard<std::mutex> lock(poolMutex_); in Insert()
70 std::lock_guard<std::mutex> lock(poolMutex_); in Delete()
88 std::lock_guard<std::mutex> lock(poolMutex_); in Select()
99 std::lock_guard<std::mutex> lock(poolMutex_); in Select()
114 std::lock_guard<std::mutex> lock(poolMutex_); in SelectScheduleNodeByScheduleId()
133 std::lock_guard<std::mutex> lock(poolMutex_); in RegisterContextPoolListener()
140 std::lock_guard<std::mutex> lock(poolMutex_); in DeregisterContextPoolListener()
152 static std::mutex mutex; in GetNewContextId() local
153 std::lock_guard<std::mutex> lock(mutex); in GetNewContextId()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_request_callback_mock.cpp28 std::lock_guard<std::mutex> lock(mutex_); in DslmRequestCallbackMock()
35 std::lock_guard<std::mutex> lock(mutex_); in ~DslmRequestCallbackMock()
43 std::lock_guard<std::mutex> lock(mutex_); in MockedCallback()
50 std::mutex DslmRequestCallbackMock::mutex_ {};
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
Dapp_event_cache.cpp24 std::mutex AppEventCache::cacheMutex_;
30 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in GetInstance()
49 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in Open()
63 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in Close()
78 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in CreateBlock()
96 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in DestroyBlock()
108 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in GetBlock()
118 std::lock_guard<std::mutex> lockGuard(cacheMutex_); in GetBlocksStat()
/base/sensors/sensor/services/sensor/src/
Dclient_info.cpp55 std::lock_guard<std::mutex> clientLock(clientMutex_); in GetSensorState()
82 std::lock_guard<std::mutex> clientLock(clientMutex_); in GetBestSensorInfo()
106 std::lock_guard<std::mutex> clientLock(clientMutex_); in OnlyCurPidSensorEnabled()
132 std::lock_guard<std::mutex> uidLock(uidMutex_); in UpdateAppThreadInfo()
154 std::lock_guard<std::mutex> uidLock(uidMutex_); in DestroyAppThreadInfo()
171 std::lock_guard<std::mutex> uidLock(uidMutex_); in GetSensorChannelByUid()
176 std::lock_guard<std::mutex> channelLock(channelMutex_); in GetSensorChannelByUid()
193 std::lock_guard<std::mutex> channelLock(channelMutex_); in GetSensorChannelByPid()
208 std::lock_guard<std::mutex> clientLock(clientMutex_); in GetSensorChannel()
216 std::lock_guard<std::mutex> channelLock(channelMutex_); in GetSensorChannel()
[all …]
/base/sensors/miscdevice/services/miscdevice_service/src/
Dvibrator_thread.cpp29 std::unique_lock<std::mutex> vibrateLck(vibrateMutex_); in Run()
39 std::unique_lock<std::mutex> readyLck(readyMutex_); in Run()
57 std::unique_lock<std::mutex> readyLck(readyMutex_); in Run()
71 std::unique_lock<std::mutex> lck(currentVibrationMutex_); in UpdateVibratorEffect()
77 std::unique_lock<std::mutex> lck(currentVibrationMutex_); in GetCurrentVibrateInfo()
88 std::unique_lock<std::mutex> readyLck(readyMutex_); in NotifyExit()

12345678910>>...47