/base/security/huks/utils/mutex/ |
D | hks_mutex.c | 25 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 …]
|
D | hks_mutex.h | 28 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/ |
D | hc_mutex.c | 22 static int HcMutexLock(HcMutex *mutex) in HcMutexLock() argument 24 if (mutex == NULL) { in HcMutexLock() 27 return -pthread_mutex_lock(&mutex->mutex); in HcMutexLock() 30 static void HcMutexUnlock(HcMutex *mutex) in HcMutexUnlock() argument 32 if (mutex == NULL) { in HcMutexUnlock() 35 pthread_mutex_unlock(&mutex->mutex); in HcMutexUnlock() 38 int32_t InitHcMutex(struct HcMutexT *mutex) in InitHcMutex() argument 40 if (mutex == NULL) { in InitHcMutex() 43 int res = pthread_mutex_init(&mutex->mutex, NULL); in InitHcMutex() 47 mutex->lock = HcMutexLock; in InitHcMutex() [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_condition.c | 22 int Wait(pthread_cond_t* cond, HcMutex* mutex) in Wait() argument 24 if (cond == NULL || mutex == NULL) { in Wait() 27 return -pthread_cond_wait(cond, &mutex->mutex); in Wait() 40 if (hcCond == NULL || hcCond->mutex == NULL) { in HcCondWaitWithoutLock() 49 ret = Wait(&hcCond->cond, hcCond->mutex); in HcCondWaitWithoutLock() 58 if (hcCond == NULL || hcCond->mutex == NULL) { in HcCondNotifyWithoutLock() 75 if (hcCond->mutex == NULL) { in HcCondWait() 79 hcCond->mutex->lock(hcCond->mutex); in HcCondWait() 82 hcCond->mutex->unlock(hcCond->mutex); in HcCondWait() 87 ret = Wait(&hcCond->cond, hcCond->mutex); in HcCondWait() [all …]
|
/base/security/device_security_level/baselib/utils/include/ |
D | utils_mutex.h | 41 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/ |
D | param_osadp.c | 183 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/ |
D | hks_condition.c | 28 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/ |
D | hc_mutex.h | 27 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/security/device_security_level/baselib/utils/src/ |
D | utils_work_queue.c | 32 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/call_manager/services/call/src/ |
D | call_state_listener.cpp | 38 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()
|
D | call_base.cpp | 86 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() 241 std::lock_guard<std::mutex> lock(mutex_); in GetTelCallState() 247 std::lock_guard<std::mutex> lock(mutex_); in SetTelConferenceState() 254 std::lock_guard<std::mutex> lock(mutex_); in GetTelConferenceState() 260 std::lock_guard<std::mutex> lock(mutex_); in GetVideoStateType() 266 std::lock_guard<std::mutex> lock(mutex_); in SetVideoStateType() 272 std::lock_guard<std::mutex> lock(mutex_); in SetPolicyFlag() [all …]
|
D | call_object_manager.cpp | 25 std::mutex CallObjectManager::listMutex_; 46 std::lock_guard<std::mutex> lock(listMutex_); in AddOneCallObject() 67 std::lock_guard<std::mutex> lock(listMutex_); in DeleteOneCallObject() 88 std::lock_guard<std::mutex> lock(listMutex_); in DeleteOneCallObject() 99 std::lock_guard<std::mutex> lock(listMutex_); in GetOneCallObject() 117 std::lock_guard<std::mutex> lock(listMutex_); in GetOneCallObject() 131 std::lock_guard<std::mutex> lock(listMutex_); in HasNewCall() 148 std::lock_guard<std::mutex> lock(listMutex_); in IsNewCallAllowedCreate() 167 std::lock_guard<std::mutex> lock(listMutex_); in GetCarrierCallList() 180 std::lock_guard<std::mutex> lock(listMutex_); in HasRingingMaximum() [all …]
|
D | conference_base.cpp | 34 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()
|
/base/useriam/user_auth_framework/services/context/src/ |
D | context_pool_impl.cpp | 43 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/telephony/core_service/test/unittest/core_service_gtest/ |
D | network_search_test_callback_stub.h | 59 std::mutex getNetworkModeMutex_; 61 std::mutex setNetworkModeMutex_; 63 std::mutex setRadioStateMutex_; 65 std::mutex getRadioStateMutex_; 67 std::mutex getNetworkSearchInformationMutex_; 69 std::mutex setPreferredNetworkMutex_; 71 std::mutex getPreferredNetworkMutex_;
|
/base/telephony/call_manager/frameworks/native/src/ |
D | call_ability_callback.cpp | 29 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()
|
D | call_manager_proxy.cpp | 63 std::lock_guard<std::mutex> lock(mutex_); in Init() 129 std::lock_guard<std::mutex> lock(mutex_); in UnInit() 139 std::lock_guard<std::mutex> lock(mutex_); in RegisterCallBack() 174 std::lock_guard<std::mutex> lock(mutex_); in UnRegisterCallBack() 269 std::lock_guard<std::mutex> lock(mutex_); in ReRegisterCallBack() 298 std::lock_guard<std::mutex> lock(mutex_); in DialCall() 313 std::lock_guard<std::mutex> lock(mutex_); in AnswerCall() 328 std::lock_guard<std::mutex> lock(mutex_); in RejectCall() 343 std::lock_guard<std::mutex> lock(mutex_); in HangUpCall() 358 std::lock_guard<std::mutex> lock(mutex_); in GetCallState() [all …]
|
/base/telephony/call_manager/services/telephony_interaction/src/ |
D | cellular_call_connection.cpp | 181 std::lock_guard<std::mutex> lock(mutex_); in Dial() 199 std::lock_guard<std::mutex> lock(mutex_); in HangUp() 216 std::lock_guard<std::mutex> lock(mutex_); in Reject() 233 std::lock_guard<std::mutex> lock(mutex_); in Answer() 248 std::lock_guard<std::mutex> lock(mutex_); in HoldCall() 263 std::lock_guard<std::mutex> lock(mutex_); in UnHoldCall() 278 std::lock_guard<std::mutex> lock(mutex_); in SwitchCall() 293 std::lock_guard<std::mutex> lock(mutex_); in IsEmergencyPhoneNumber() 303 std::lock_guard<std::mutex> lock(mutex_); in CombineConference() 318 std::lock_guard<std::mutex> lock(mutex_); in SeparateConference() [all …]
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_request_callback_mock.cpp | 28 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/ |
D | app_event_cache.cpp | 24 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/miscdevice/services/miscdevice_service/src/ |
D | vibrator_thread.cpp | 30 std::unique_lock<std::mutex> vibrateLck(vibrateMutex_); in Run() 40 std::unique_lock<std::mutex> readyLck(readyMutex_); in Run() 56 std::unique_lock<std::mutex> readyLck(readyMutex_); in Run() 69 std::unique_lock<std::mutex> lck(currentVibrationMutex_); in UpdateVibratorEffect() 75 std::unique_lock<std::mutex> lck(currentVibrationMutex_); in GetCurrentVibrateInfo() 86 std::unique_lock<std::mutex> readyLck(readyMutex_); in NotifyExit()
|
/base/hiviewdfx/hiview/adapter/utility/include/extra/ |
D | singleton.h | 55 static std::mutex mutex_; 62 std::mutex DelayedSingleton<T>::mutex_; 68 std::lock_guard<std::mutex> lock(mutex_); in GetInstance() 80 std::lock_guard<std::mutex> lock(mutex_); in DestroyInstance() 94 static std::mutex mutex_; 101 std::mutex DelayedRefSingleton<T>::mutex_; 107 std::lock_guard<std::mutex> lock(mutex_); in GetInstance()
|
/base/hiviewdfx/hiview/base/ |
D | plugin_proxy.cpp | 25 std::lock_guard<std::mutex> lock(lock_); in OnEvent() 36 std::lock_guard<std::mutex> lock(lock_); in CanProcessEvent() 47 std::lock_guard<std::mutex> lock(lock_); in CanProcessMoreEvents() 58 std::lock_guard<std::mutex> lock(lock_); in GetHandlerInfo() 69 std::lock_guard<std::mutex> lock(lock_); in Dump() 78 std::lock_guard<std::mutex> lock(lock_); in OnEventListeningCallback() 108 std::lock_guard<std::mutex> lock(lock_); in DestroyInstanceIfNeed()
|
/base/useriam/user_auth_framework/services/core/src/ |
D | resource_node_pool_impl.cpp | 43 mutable std::mutex poolMutex_; 54 std::lock_guard<std::mutex> lock(poolMutex_); in Insert() 81 std::lock_guard<std::mutex> lock(poolMutex_); in Delete() 99 std::lock_guard<std::mutex> lock(poolMutex_); in DeleteAll() 113 std::lock_guard<std::mutex> lock(poolMutex_); in Select() 128 std::lock_guard<std::mutex> lock(poolMutex_); in Enumerate() 136 std::lock_guard<std::mutex> lock(poolMutex_); in GetPoolSize() 146 std::lock_guard<std::mutex> lock(poolMutex_); in RegisterResourceNodePoolListener() 153 std::lock_guard<std::mutex> lock(poolMutex_); in DeregisterResourceNodePoolListener()
|
/base/time/time_service/services/time/src/ |
D | timer_call_back.cpp | 21 std::mutex TimerCallback::instanceLock_; 25 std::mutex TimerCallback::timerInfoMutex_; 39 std::lock_guard<std::mutex> autoLock(instanceLock_); in GetInstance() 54 std::lock_guard<std::mutex> lock(timerInfoMutex_); in InsertTimerCallbackInfo() 69 std::lock_guard<std::mutex> lock(timerInfoMutex_); in RemoveTimerCallbackInfo() 85 std::lock_guard<std::mutex> lock(timerInfoMutex_); in NotifyTimer()
|