Home
last modified time | relevance | path

Searched refs:mutex_ (Results 1 – 25 of 1346) sorted by relevance

12345678910>>...54

/foundation/multimedia/histreamer/engine/foundation/osal/thread/
Dscoped_lock.cpp24 ScopedLock::ScopedLock() : mutex_(nullptr) in ScopedLock()
28 ScopedLock::ScopedLock(Mutex& mutex) : mutex_(&mutex) in ScopedLock()
30 mutex_->Lock(); in ScopedLock()
35 if (mutex_ != nullptr) { in ~ScopedLock()
36 mutex_->Unlock(); in ~ScopedLock()
37 mutex_ = nullptr; in ~ScopedLock()
43 mutex_ = nullptr; in ScopedLock()
50 if (mutex_) { in operator =()
51 mutex_->Unlock(); in operator =()
53 mutex_ = other.mutex_; in operator =()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/innerkits/
Dgraphic_mutex.h37 mutex_ = CreateMutex(NULL, FALSE, NULL); in GraphicMutex()
38 initFlag_ = (mutex_ != NULL); in GraphicMutex()
40 initFlag_ = (pthread_mutex_init(&mutex_, NULL) == 0); in GraphicMutex()
42 initFlag_ = (LOS_MuxCreate(&mutex_) == LOS_OK); in GraphicMutex()
53 CloseHandle(mutex_); in ~GraphicMutex()
55 pthread_mutex_destroy(&mutex_); in ~GraphicMutex()
57 LOS_MuxDelete(mutex_); in ~GraphicMutex()
67 return (WaitForSingleObject(mutex_, INFINITE) == WAIT_OBJECT_0); in Lock()
69 return (pthread_mutex_lock(&mutex_) == 0); in Lock()
71 return (LOS_MuxPend(mutex_, LOS_WAIT_FOREVER) == LOS_OK); in Lock()
[all …]
Dgraphic_locker.h28 explicit GraphicLocker(pthread_mutex_t& mutex) : mutex_(mutex) in GraphicLocker()
30 pthread_mutex_lock(&mutex_); in GraphicLocker()
35 pthread_mutex_unlock(&mutex_); in ~GraphicLocker()
43 pthread_mutex_t& mutex_;
53 pthread_mutex_init(&mutex_, &attr); in GraphicMutex()
57 pthread_mutex_destroy(&mutex_); in ~GraphicMutex()
61 pthread_mutex_lock(&mutex_); in Lock()
65 pthread_mutex_unlock(&mutex_); in Unlock()
73 pthread_mutex_t mutex_;
92 explicit GraphicLockGuard(GraphicMutex& mutex) : mutex_(mutex) in GraphicLockGuard()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
Dstore_result_set.cpp36 std::shared_lock<decltype(mutex_)> lock(mutex_); in GetCount()
47 std::shared_lock<decltype(mutex_)> lock(mutex_); in GetPosition()
58 std::shared_lock<decltype(mutex_)> lock(mutex_); in MoveToFirst()
68 std::shared_lock<decltype(mutex_)> lock(mutex_); in MoveToLast()
79 std::shared_lock<decltype(mutex_)> lock(mutex_); in MoveToNext()
90 std::shared_lock<decltype(mutex_)> lock(mutex_); in MoveToPrevious()
101 std::shared_lock<decltype(mutex_)> lock(mutex_); in Move()
112 std::shared_lock<decltype(mutex_)> lock(mutex_); in MoveToPosition()
123 std::shared_lock<decltype(mutex_)> lock(mutex_); in IsFirst()
133 std::shared_lock<decltype(mutex_)> lock(mutex_); in IsLast()
[all …]
/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/
Dmutex_lock.h25 explicit Lock(T &mutex) : mutex_(&mutex) in Lock()
27 if (mutex_ != nullptr) { in Lock()
28 mutex_->Lock(); in Lock()
34 if (mutex_ != nullptr) { in ~Lock()
35 mutex_->UnLock(); in ~Lock()
39 T *mutex_;
46 pthread_mutex_init(&mutex_, nullptr); in Mutex()
51 pthread_mutex_destroy(&mutex_); in ~Mutex()
56 pthread_mutex_lock(&mutex_); in Lock()
61 pthread_mutex_unlock(&mutex_); in UnLock()
[all …]
/foundation/distributeddatamgr/pasteboard/framework/framework/include/common/
Dconcurrent_map.h49 std::lock_guard<decltype(mutex_)> lock(mutex_);
65 std::lock_guard<decltype(mutex_)> lock(mutex_);
73 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
80 std::lock_guard<decltype(mutex_)> lock(mutex_); in Find()
91 std::lock_guard<decltype(mutex_)> lock(mutex_); in Contains()
98 std::lock_guard<decltype(mutex_)> lock(mutex_); in InsertOrAssign()
105 std::lock_guard<decltype(mutex_)> lock(mutex_); in Insert()
112 std::lock_guard<decltype(mutex_)> lock(mutex_); in Erase()
118 std::lock_guard<decltype(mutex_)> lock(mutex_); in Clear()
124 std::lock_guard<decltype(mutex_)> lock(mutex_); in Empty()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/common/
Dconcurrent_map.h54 std::lock_guard<decltype(mutex_)> lock(mutex_);
70 std::lock_guard<decltype(mutex_)> lock(mutex_);
77 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
86 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
95 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
105 std::lock_guard<decltype(mutex_)> lock(mutex_); in Find()
116 std::lock_guard<decltype(mutex_)> lock(mutex_); in Contains()
123 std::lock_guard<decltype(mutex_)> lock(mutex_); in InsertOrAssign()
130 std::lock_guard<decltype(mutex_)> lock(mutex_); in Insert()
137 std::lock_guard<decltype(mutex_)> lock(mutex_); in Erase()
[all …]
Dlru_bucket.h37 std::lock_guard<decltype(mutex_)> lock(mutex_); in ~LRUBucket()
55 std::lock_guard<decltype(mutex_)> lock(mutex_); in ResetCapacity()
68 std::lock_guard<decltype(mutex_)> lock(mutex_);
88 std::lock_guard<decltype(mutex_)> lock(mutex_); in Set()
121 std::lock_guard<decltype(mutex_)> lock(mutex_); in Update()
136 std::lock_guard<decltype(mutex_)> lock(mutex_); in Update()
163 std::lock_guard<decltype(mutex_)> lock(mutex_); in Delete()
219 mutable std::recursive_mutex mutex_; variable
/foundation/ability/ability_runtime/services/dataobsmgr/include/
Dconcurrent_map.h54 std::lock_guard<decltype(mutex_)> lock(mutex_);
70 std::lock_guard<decltype(mutex_)> lock(mutex_);
77 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
86 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
95 std::lock_guard<decltype(mutex_)> lock(mutex_); in Emplace()
105 std::lock_guard<decltype(mutex_)> lock(mutex_); in Find()
116 std::lock_guard<decltype(mutex_)> lock(mutex_); in Contains()
123 std::lock_guard<decltype(mutex_)> lock(mutex_); in InsertOrAssign()
130 std::lock_guard<decltype(mutex_)> lock(mutex_); in Insert()
137 std::lock_guard<decltype(mutex_)> lock(mutex_); in Erase()
[all …]
/foundation/communication/wifi/wifi/frameworks/native/src/
Dwifi_p2p_impl.cpp77 std::lock_guard<std::mutex> lock(mutex_); in EnableP2p()
84 std::lock_guard<std::mutex> lock(mutex_); in DisableP2p()
91 std::lock_guard<std::mutex> lock(mutex_); in DiscoverDevices()
98 std::lock_guard<std::mutex> lock(mutex_); in StopDiscoverDevices()
105 std::lock_guard<std::mutex> lock(mutex_); in DiscoverServices()
112 std::lock_guard<std::mutex> lock(mutex_); in StopDiscoverServices()
119 std::lock_guard<std::mutex> lock(mutex_); in RequestService()
126 std::lock_guard<std::mutex> lock(mutex_); in PutLocalP2pService()
133 std::lock_guard<std::mutex> lock(mutex_); in DeleteLocalP2pService()
140 std::lock_guard<std::mutex> lock(mutex_); in StartP2pListen()
[all …]
Dwifi_device_impl.cpp104 std::lock_guard<std::mutex> lock(mutex_); in EnableWifi()
111 std::lock_guard<std::mutex> lock(mutex_); in DisableWifi()
118 std::lock_guard<std::mutex> lock(mutex_); in InitWifiProtect()
125 std::lock_guard<std::mutex> lock(mutex_); in GetWifiProtectRef()
132 std::lock_guard<std::mutex> lock(mutex_); in PutWifiProtectRef()
139 std::lock_guard<std::mutex> lock(mutex_); in RemoveCandidateConfig()
146 std::lock_guard<std::mutex> lock(mutex_); in RemoveCandidateConfig()
153 std::lock_guard<std::mutex> lock(mutex_); in AddDeviceConfig()
160 std::lock_guard<std::mutex> lock(mutex_); in UpdateDeviceConfig()
167 std::lock_guard<std::mutex> lock(mutex_); in RemoveDevice()
[all …]
Dwifi_hotspot_impl.cpp93 std::lock_guard<std::mutex> lock(mutex_); in IsHotspotActive()
100 std::lock_guard<std::mutex> lock(mutex_); in IsHotspotDualBandSupported()
107 std::lock_guard<std::mutex> lock(mutex_); in GetHotspotState()
114 std::lock_guard<std::mutex> lock(mutex_); in GetHotspotConfig()
121 std::lock_guard<std::mutex> lock(mutex_); in SetHotspotConfig()
128 std::lock_guard<std::mutex> lock(mutex_); in SetHotspotIdleTimeout()
135 std::lock_guard<std::mutex> lock(mutex_); in GetStationList()
142 std::lock_guard<std::mutex> lock(mutex_); in DisassociateSta()
149 std::lock_guard<std::mutex> lock(mutex_); in EnableHotspot()
156 std::lock_guard<std::mutex> lock(mutex_); in DisableHotspot()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/
Dsync_observer.cpp25 std::lock_guard<decltype(mutex_)> lock(mutex_); in SyncObserver()
31 std::lock_guard<decltype(mutex_)> lock(mutex_); in Add()
38 std::lock_guard<decltype(mutex_)> lock(mutex_); in Clean()
45 std::lock_guard<decltype(mutex_)> lock(mutex_); in SyncCompleted()
/foundation/multimedia/player_framework/services/services/player/client/
Dplayer_client.cpp44 std::lock_guard<std::mutex> lock(mutex_); in ~PlayerClient()
56 std::lock_guard<std::mutex> lock(mutex_); in CreateListenerObject()
71 std::lock_guard<std::mutex> lock(mutex_); in MediaServerDied()
82 std::lock_guard<std::mutex> lock(mutex_); in SetSource()
89 std::lock_guard<std::mutex> lock(mutex_); in SetSource()
103 std::lock_guard<std::mutex> lock(mutex_); in SetSource()
118 std::lock_guard<std::mutex> lock(mutex_); in AddSubSource()
125 std::lock_guard<std::mutex> lock(mutex_); in AddSubSource()
132 std::lock_guard<std::mutex> lock(mutex_); in Play()
140 std::lock_guard<std::mutex> lock(mutex_); in Prepare()
[all …]
/foundation/multimedia/player_framework/services/services/avcodec/client/
Davcodec_client.cpp47 std::lock_guard<std::mutex> lock(mutex_); in ~AVCodecClient()
56 std::lock_guard<std::mutex> lock(mutex_); in MediaServerDied()
66 std::lock_guard<std::mutex> lock(mutex_); in CreateListenerObject()
80 std::lock_guard<std::mutex> lock(mutex_); in InitParameter()
89 std::lock_guard<std::mutex> lock(mutex_); in Configure()
98 std::lock_guard<std::mutex> lock(mutex_); in Prepare()
107 std::lock_guard<std::mutex> lock(mutex_); in Start()
116 std::lock_guard<std::mutex> lock(mutex_); in Stop()
125 std::lock_guard<std::mutex> lock(mutex_); in Flush()
134 std::lock_guard<std::mutex> lock(mutex_); in NotifyEos()
[all …]
/foundation/multimedia/player_framework/services/services/recorder/client/
Drecorder_client.cpp48 std::lock_guard<std::mutex> lock(mutex_); in ~RecorderClient()
61 std::lock_guard<std::mutex> lock(mutex_); in MediaServerDied()
72 std::lock_guard<std::mutex> lock(mutex_); in CreateListenerObject()
87 std::lock_guard<std::mutex> lock(mutex_); in SetVideoSource()
96 std::lock_guard<std::mutex> lock(mutex_); in SetVideoEncoder()
105 std::lock_guard<std::mutex> lock(mutex_); in SetVideoSize()
114 std::lock_guard<std::mutex> lock(mutex_); in SetVideoFrameRate()
123 std::lock_guard<std::mutex> lock(mutex_); in SetVideoEncodingBitRate()
132 std::lock_guard<std::mutex> lock(mutex_); in SetCaptureRate()
141 std::lock_guard<std::mutex> lock(mutex_); in GetSurface()
[all …]
/foundation/window/window_manager/wmserver/src/
Dwindow_node_state_machine.cpp51 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetDestroyTask()
62 std::lock_guard<std::recursive_mutex> lock(mutex_); in SetDestroyTask()
68 std::lock_guard<std::recursive_mutex> lock(mutex_); in TransitionTo()
82 std::lock_guard<std::recursive_mutex> lock(mutex_); in UpdateAnimationTaskCount()
96 std::lock_guard<std::recursive_mutex> lock(mutex_); in ResetAnimationTaskCount()
102 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetAnimationCount()
108 std::lock_guard<std::recursive_mutex> lock(mutex_); in IsRemoteAnimationPlaying()
119 std::lock_guard<std::recursive_mutex> lock(mutex_); in IsShowAnimationPlaying()
126 std::lock_guard<std::recursive_mutex> lock(mutex_); in IsHideAnimationPlaying()
133 std::lock_guard<std::recursive_mutex> lock(mutex_); in IsWindowNodeShownOrShowing()
[all …]
/foundation/multimedia/player_framework/services/services/screen_capture/client/
Dscreen_capture_client.cpp47 std::lock_guard<std::mutex> lock(mutex_); in CreateListenerObject()
61 std::lock_guard<std::mutex> lock(mutex_); in ~ScreenCaptureClient()
81 std::lock_guard<std::mutex> lock(mutex_); in MediaServerDied()
91 std::lock_guard<std::mutex> lock(mutex_); in Release()
98 std::lock_guard<std::mutex> lock(mutex_); in SetCaptureMode()
105 std::lock_guard<std::mutex> lock(mutex_); in InitAudioCap()
112 std::lock_guard<std::mutex> lock(mutex_); in InitVideoCap()
119 std::lock_guard<std::mutex> lock(mutex_); in SetMicrophoneEnabled()
126 std::lock_guard<std::mutex> lock(mutex_); in StartScreenCapture()
133 std::lock_guard<std::mutex> lock(mutex_); in StopScreenCapture()
[all …]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
Drdb_result_set_impl.cpp39 std::shared_lock<std::shared_mutex> lock(mutex_); in GetAllColumnNames()
49 std::shared_lock<std::shared_mutex> lock(mutex_); in GetColumnCount()
59 std::shared_lock<std::shared_mutex> lock(mutex_); in GetColumnType()
69 std::shared_lock<std::shared_mutex> lock(mutex_); in GetColumnIndex()
84 std::shared_lock<std::shared_mutex> lock(mutex_); in GetColumnName()
97 std::shared_lock<std::shared_mutex> lock(mutex_); in GetRowCount()
107 std::shared_lock<std::shared_mutex> lock(mutex_); in GetRowIndex()
137 std::unique_lock<std::shared_mutex> lock(mutex_); in GoToFirstRow()
153 std::unique_lock<std::shared_mutex> lock(mutex_); in GoToNextRow()
169 std::unique_lock<std::shared_mutex> lock(mutex_); in GoToPreviousRow()
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/proxy/src/
Ddata_proxy_observer_stub.cpp47 std::lock_guard<decltype(mutex_)> lock(mutex_); in OnChangeFromRdb()
64 std::lock_guard<decltype(mutex_)> lock(mutex_); in ClearCallback()
92 std::lock_guard<decltype(mutex_)> lock(mutex_); in OnChangeFromPublishedData()
100 std::lock_guard<decltype(mutex_)> lock(mutex_); in ClearCallback()
/foundation/ai/ai_engine/services/common/platform/event/source/
Devent.cpp41 std::unique_lock<std::mutex> lock(mutex_); in Wait()
48 std::unique_lock<std::mutex> lock(mutex_); in Wait()
54 mutex_.lock(); in Signal()
57 mutex_.unlock(); in Signal()
64 mutex_.lock(); in Reset()
67 mutex_.unlock(); in Reset()
78 mutable std::mutex mutex_; member in OHOS::AI::Event
/foundation/graphic/graphic_2d/frameworks/surface/src/
Dsurface_buffer_impl.cpp141 std::lock_guard<std::mutex> lock(mutex_); in Alloc()
156 std::lock_guard<std::mutex> lock(mutex_); in Alloc()
178 std::lock_guard<std::mutex> lock(mutex_); in Map()
205 std::lock_guard<std::mutex> lock(mutex_); in Unmap()
232 std::lock_guard<std::mutex> lock(mutex_); in FlushCache()
260 std::lock_guard<std::mutex> lock(mutex_); in InvalidateCache()
290 std::lock_guard<std::mutex> lock(mutex_); in GetBufferHandle()
296 std::lock_guard<std::mutex> lock(mutex_); in SetSurfaceBufferColorGamut()
302 std::lock_guard<std::mutex> lock(mutex_); in GetSurfaceBufferColorGamut()
308 std::lock_guard<std::mutex> lock(mutex_); in SetSurfaceBufferTransform()
[all …]
/foundation/multimedia/av_codec/services/services/codec/client/
Dcodec_client.cpp47 std::lock_guard<std::shared_mutex> lock(mutex_); in ~CodecClient()
57 std::lock_guard<std::shared_mutex> lock(mutex_); in AVCodecServerDied()
70 std::lock_guard<std::shared_mutex> lock(mutex_); in CreateListenerObject()
89 std::lock_guard<std::shared_mutex> lock(mutex_); in Init()
101 std::lock_guard<std::shared_mutex> lock(mutex_); in Configure()
113 std::lock_guard<std::shared_mutex> lock(mutex_); in Start()
128 std::lock_guard<std::shared_mutex> lock(mutex_); in Stop()
144 std::lock_guard<std::shared_mutex> lock(mutex_); in Flush()
158 std::lock_guard<std::shared_mutex> lock(mutex_); in NotifyEos()
172 std::lock_guard<std::shared_mutex> lock(mutex_); in Reset()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
Dadapter_device_config.cpp51 std::lock_guard<std::mutex> lg(mutex_); in Load()
78 std::lock_guard<std::mutex> lg(mutex_); in Save()
84 std::lock_guard<std::mutex> lg(mutex_); in SetValue()
90 std::lock_guard<std::mutex> lg(mutex_); in SetValue()
96 std::lock_guard<std::mutex> lg(mutex_); in GetValue()
102 std::lock_guard<std::mutex> lg(mutex_); in GetValue()
109 std::lock_guard<std::mutex> lg(mutex_); in GetValue()
116 std::lock_guard<std::mutex> lg(mutex_); in SetValue()
122 std::lock_guard<std::mutex> lg(mutex_); in SetValue()
129 std::lock_guard<std::mutex> lg(mutex_); in SetValue()
[all …]
/foundation/resourceschedule/ffrt/src/util/
Dts_queue.h33 std::lock_guard<decltype(mutex_)> lg(mutex_); in Push()
41 std::unique_lock<decltype(mutex_)> lg(mutex_); in Pop()
50 std::mutex mutex_; variable

12345678910>>...54