/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 | 24 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/ |
D | hc_condition.c | 24 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/ |
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/telephony/cellular_call/services/manager/src/ |
D | cellular_call_register.cpp | 45 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/ |
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/core_service/test/unittest/core_service_gtest/ |
D | network_search_test_callback_stub.h | 67 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/ |
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() 94 std::lock_guard<std::mutex> lock(mutex_); in OnReportAudioDeviceChange() 103 std::lock_guard<std::mutex> lock(mutex_); in OnReportPostDialDelay()
|
D | call_manager_proxy.cpp | 63 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/ |
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 | 85 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 …]
|
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()
|
D | call_object_manager.cpp | 27 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/ |
D | satellite_status.h | 48 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/ |
D | block_queue.h | 33 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/ |
D | block_queue.h | 34 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/ |
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/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/sensor/services/sensor/src/ |
D | client_info.cpp | 55 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/ |
D | vibrator_thread.cpp | 29 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()
|