Home
last modified time | relevance | path

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

1234

/device/linaro/dragonboard/gralloc/
Dgralloc.cpp45 pthread_mutex_t mutex; member
56 pthread_mutex_lock(&dmod->mutex); in gbm_init()
62 pthread_mutex_unlock(&dmod->mutex); in gbm_init()
106 pthread_mutex_lock(&dmod->mutex); in gbm_mod_register_buffer()
108 pthread_mutex_unlock(&dmod->mutex); in gbm_mod_register_buffer()
119 pthread_mutex_lock(&dmod->mutex); in gbm_mod_unregister_buffer()
121 pthread_mutex_unlock(&dmod->mutex); in gbm_mod_unregister_buffer()
132 pthread_mutex_lock(&dmod->mutex); in gbm_mod_lock()
137 pthread_mutex_unlock(&dmod->mutex); in gbm_mod_lock()
146 pthread_mutex_lock(&dmod->mutex); in gbm_mod_unlock()
[all …]
/device/generic/goldfish/gnss/
Ddata_sink.cpp23 std::unique_lock<std::mutex> lock(mtx); in gnssLocation()
30 std::unique_lock<std::mutex> lock(mtx); in gnssSvStatus()
37 std::unique_lock<std::mutex> lock(mtx); in gnssStatus()
45 std::unique_lock<std::mutex> lock(mtx); in gnssNmea()
52 std::unique_lock<std::mutex> lock(mtx); in setCallback20()
57 std::unique_lock<std::mutex> lock(mtx); in cleanup()
62 std::unique_lock<std::mutex> lock(mtx); in start()
/device/google/cuttlefish/host/frontend/vnc_server/
Dblackboard.cpp40 std::lock_guard<std::mutex> guard(m_); in NewStripeReady()
53 std::lock_guard<std::mutex> guard(m_); in Register()
61 std::lock_guard<std::mutex> guard(m_); in Unregister()
80 std::unique_lock<std::mutex> guard(m_); in WaitForSenderWork()
98 std::unique_lock<std::mutex> guard(m_); in WaitForAtLeastOneClientConnection()
106 std::lock_guard<std::mutex> guard(m_); in SetOrientation()
116 std::lock_guard<std::mutex> guard(m_); in SignalClientNeedsEntireScreen()
126 std::lock_guard<std::mutex> guard(m_); in FrameBufferUpdateRequestReceived()
134 std::lock_guard<std::mutex> guard(m_); in StopWaiting()
143 std::lock_guard<std::mutex> guard(m_); in set_frame_buffer_watcher()
[all …]
Dframe_buffer_watcher.cpp50 std::lock_guard<std::mutex> guard(m_); in ~FrameBufferWatcher()
59 std::lock_guard<std::mutex> guard(m_); in closed()
97 std::lock_guard<std::mutex> guard(stripes_lock_); in StripesNewerThan()
131 std::lock_guard<std::mutex> guard(stripes_lock_); in UpdateStripeIfStripeIsNew()
161 std::lock_guard<std::mutex> guard(stripes_lock_); in Worker()
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/
Dxf-osal.h82 pthread_mutex_t mutex; member
90 pthread_mutex_init(&w->mutex, NULL); in __xf_wait_init()
96 pthread_mutex_lock(&w->mutex); in __xf_wait_prepare()
115 r = -pthread_cond_wait(&w->wait, &w->mutex); in __xf_wait()
128 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); in __xf_wait()
148 pthread_mutex_lock(&w->mutex); in __xf_wakeup()
154 pthread_mutex_unlock(&w->mutex); in __xf_wakeup()
166 pthread_mutex_unlock(&w->mutex); in __xf_wait_complete()
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/
Dxf-osal.h76 pthread_mutex_t mutex;
84 pthread_mutex_init(&w->mutex, NULL);
90 pthread_mutex_lock(&w->mutex);
109 r = -pthread_cond_wait(&w->wait, &w->mutex);
122 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts);
142 pthread_mutex_lock(&w->mutex);
148 pthread_mutex_unlock(&w->mutex);
160 pthread_mutex_unlock(&w->mutex);
/device/generic/goldfish/audio/
Dring_buffer.cpp31 std::lock_guard<std::mutex> guard(mMutex); in availableToProduce()
36 std::unique_lock<std::mutex> lock(mMutex); in availableToConsume()
41 std::unique_lock<std::mutex> lock(mMutex); in makeRoomForProduce()
55 std::unique_lock<std::mutex> lock(mMutex); in waitForProduceAvailable()
66 std::unique_lock<std::mutex> lock(mMutex); in getProduceChunk()
80 std::unique_lock<std::mutex> lock(mMutex); in produce()
92 std::unique_lock<std::mutex> lock(mMutex); in produce()
116 std::unique_lock<std::mutex> lock(mMutex); in waitForConsumeAvailable()
127 std::unique_lock<std::mutex> lock(mMutex); in getConsumeChunk()
Dring_buffer.h44 std::unique_lock<std::mutex> lock;
48 std::unique_lock<std::mutex> lock;
91 mutable std::mutex mMutex;
/device/google/cuttlefish/host/libs/wayland/
Dwayland_surface.cpp25 std::unique_lock<std::mutex> lock(state_mutex_); in SetRegion()
30 std::unique_lock<std::mutex> lock(state_mutex_); in Attach()
35 std::unique_lock<std::mutex> lock(state_mutex_); in Commit()
40 std::unique_lock<std::mutex> lock(callback_mutex_); in Commit()
72 std::unique_lock<std::mutex> lock(callback_mutex_); in OnFrameAfter()
/device/google/cuttlefish/common/libs/thread_safe_queue/
Dthread_safe_queue.h44 std::unique_lock<std::mutex> guard(m_); in Pop()
54 std::unique_lock<std::mutex> guard(m_); in PopAll()
62 std::lock_guard<std::mutex> guard(m_); in Push()
69 std::lock_guard<std::mutex> guard(m_); in Push()
82 std::mutex m_;
/device/linaro/hikey/bluetooth/
Dasync_fd_watcher.cc41 std::unique_lock<std::mutex> guard(internal_mutex_); in WatchFdForNonBlockingReads()
54 std::unique_lock<std::mutex> guard(timeout_mutex_); in ConfigureTimeout()
94 std::unique_lock<std::mutex> guard(internal_mutex_); in stopThread()
99 std::unique_lock<std::mutex> guard(timeout_mutex_); in stopThread()
145 std::unique_lock<std::mutex> guard(timeout_mutex_); in ThreadRoutine()
162 std::unique_lock<std::mutex> guard(internal_mutex_); in ThreadRoutine()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DRunLoop.cpp101 std::mutex mtx; in postAndAwait()
108 std::unique_lock<std::mutex> lock(mtx); in postAndAwait()
117 std::unique_lock<std::mutex> lock(mtx); in postAndAwait()
134 std::lock_guard<std::mutex> autoLock(mLock); in cancelToken()
157 std::lock_guard<std::mutex> autoLock(mLock); in postSocketRecv()
166 std::lock_guard<std::mutex> autoLock(mLock); in postSocketSend()
174 std::lock_guard<std::mutex> autoLock(mLock); in cancelSocket()
180 std::lock_guard<std::mutex> autoLock(mLock); in insert()
222 std::lock_guard<std::mutex> autoLock(mLock); in run()
344 std::lock_guard<std::mutex> autoLock(mLock); in run()
[all …]
/device/generic/goldfish/wifi/wifi_hal/
Dhalstate.cpp24 std::unique_lock<std::mutex> lock(mStateMutex); in init()
51 std::unique_lock<std::mutex> lock(mStateMutex); in stop()
81 std::unique_lock<std::mutex> lock(mStateMutex); in eventLoop()
99 std::unique_lock<std::mutex> lock(mStateMutex); in onStop()
Dwifi_hal.cpp83 std::mutex mutex; in wifi_cleanup() local
84 std::unique_lock<std::mutex> lock(mutex); in wifi_cleanup()
91 auto callback = [&mutex, &stopped, &condition] { in wifi_cleanup()
92 std::unique_lock<std::mutex> lock(mutex); in wifi_cleanup()
/device/generic/opengl-transport/host/libs/virglrenderer/
DContext.h52 std::lock_guard<std::mutex> lk(m); in ~Context()
90 std::lock_guard<std::mutex> lk(m); in submitCommand()
99 std::lock_guard<std::mutex> lk(m); in setFence()
126 std::mutex m;
137 std::unique_lock<std::mutex> lk(m); in worker_func()
/device/google/cuttlefish/host/commands/modem_simulator/
Dthread_looper.cpp56 std::lock_guard<std::mutex> autolock(lock_); in CancelSerial()
73 std::lock_guard<std::mutex> autolock(lock_); in Insert()
88 std::unique_lock<std::mutex> lock(lock_); in ThreadLoop()
121 std::lock_guard<std::mutex> autolock(lock_); in Stop()
/device/google/contexthub/contexthubhal/
Dsystem_comms.h176 mutable std::mutex mDoneMutex; // controls condition and state transitions
181 mutable std::mutex mLock; // serializes message handling
191 std::unique_lock<std::mutex> lk(mDoneMutex); in complete()
199 std::lock_guard<std::mutex> _l(mLock); in abort()
207 std::lock_guard<std::mutex> _l(mDoneMutex); in setState()
214 std::lock_guard<std::mutex> _l(mLock); in getStatus()
218 std::unique_lock<std::mutex> lk(mDoneMutex); in wait()
228 std::lock_guard<std::mutex> _l(mDoneMutex); in getState()
232 std::lock_guard<std::mutex> _l(mDoneMutex); in isDone()
236 std::lock_guard<std::mutex> _l(mDoneMutex); in isRunning()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/common/
Dgoldfish_media_utils.cpp34 std::mutex sSingletonMutex;
53 std::lock_guard<std::mutex> g{mMemoryMutex}; in getMemorySlot()
66 std::lock_guard<std::mutex> g{mMemoryMutex}; in returnMemorySlot()
74 std::mutex mMemoryMutex;
144 std::lock_guard<std::mutex> g{sSingletonMutex}; in getInstance()
/device/google/cuttlefish/host/frontend/webrtc/
Ddisplay_handler.cpp45 std::lock_guard<std::mutex> lock(last_buffer_mutex_); in Loop()
59 std::lock_guard<std::mutex> lock(last_buffer_mutex_); in SendLastFrame()
70 std::lock_guard<std::mutex> lock(next_frame_mutex_); in SendLastFrame()
Ddisplay_handler.h40 std::mutex last_buffer_mutex_;
41 std::mutex next_frame_mutex_;
/device/generic/goldfish/sensors/
Dmultihal_sensors.cpp118 std::unique_lock<std::mutex> lock(m_mtx); in setOperationMode()
134 std::unique_lock<std::mutex> lock(m_mtx); in activate()
178 std::unique_lock<std::mutex> lock(m_mtx); in batch()
194 std::unique_lock<std::mutex> lock(m_mtx); in flush()
216 std::unique_lock<std::mutex> lock(m_mtx); in injectSensorData()
231 std::unique_lock<std::mutex> lock(m_mtx); in initialize()
242 std::unique_lock<std::mutex> lock(m_mtx); in postSensorEvent()
282 std::unique_lock<std::mutex> lock(m_mtx); in batchThread()
/device/google/wahoo/usb/
DUsbGadget.h55 using ::std::mutex;
72 std::mutex mLock;
76 std::mutex mLockSetCurrentFunction;
/device/google/bonito/usb/
DUsbGadget.h56 using ::std::mutex;
74 std::mutex mLock;
78 std::mutex mLockSetCurrentFunction;
/device/google/crosshatch/usb/
DUsbGadget.h56 using ::std::mutex;
74 std::mutex mLock;
78 std::mutex mLockSetCurrentFunction;
/device/google/cuttlefish/common/libs/tcp_socket/
Dtcp_socket.cpp43 std::lock_guard<std::mutex> guard(closed_lock_); in closed()
57 std::lock_guard<std::mutex> guard(closed_lock_); in Recv()
69 std::lock_guard<std::mutex> lock(send_lock_); in SendNoSignal()
79 std::lock_guard<std::mutex> guard(closed_lock_); in SendNoSignal()

1234