Home
last modified time | relevance | path

Searched refs:waitId (Results 1 – 5 of 5) sorted by relevance

/aosp12/frameworks/av/media/codec2/vndk/platform/
H A DC2SurfaceSyncObj.cpp170 bool C2SyncVariables::isDequeueableLocked(uint32_t *waitId) { in isDequeueableLocked() argument
172 if (waitId) { in isDequeueableLocked()
173 *waitId = getWaitIdLocked(); in isDequeueableLocked()
180 bool C2SyncVariables::notifyQueuedLocked(uint32_t *waitId) { in notifyQueuedLocked() argument
190 if (waitId) { in notifyQueuedLocked()
191 *waitId = getWaitIdLocked(); in notifyQueuedLocked()
222 c2_status_t C2SyncVariables::waitForChange(uint32_t waitId, c2_nsecs_t timeoutNs) { in waitForChange() argument
230 int ret = syscall(__NR_futex, &mCond, FUTEX_WAIT, waitId, &tv, NULL, 0); in waitForChange()
H A DC2BqBuffer.cpp302 uint32_t waitId; in fetchFromIgbp_l() local
304 if (!syncVar->isDequeueableLocked(&waitId)) { in fetchFromIgbp_l()
307 *c2Fence = _C2FenceFactory::CreateSurfaceFence(mSyncMem, waitId); in fetchFromIgbp_l()
312 waitId = syncVar->getWaitIdLocked(); in fetchFromIgbp_l()
315 *c2Fence = _C2FenceFactory::CreateSurfaceFence(mSyncMem, waitId); in fetchFromIgbp_l()
345 uint32_t waitId; in fetchFromIgbp_l() local
355 dequeueable = syncVar->notifyQueuedLocked(&waitId); in fetchFromIgbp_l()
359 _C2FenceFactory::CreateSurfaceFence(mSyncMem, waitId); in fetchFromIgbp_l()
/aosp12/frameworks/av/media/codec2/vndk/
H A DC2Fence.cpp120 SurfaceFenceImpl(std::shared_ptr<C2SurfaceSyncMemory> syncMem, uint32_t waitId) : in SurfaceFenceImpl() argument
123 mWaitId(syncMem ? waitId : 0) {} in SurfaceFenceImpl()
134 uint32_t waitId) { in CreateSurfaceFence() argument
137 = new _C2FenceFactory::SurfaceFenceImpl(syncMem, waitId); in CreateSurfaceFence()
/aosp12/frameworks/av/media/codec2/vndk/include/
H A DC2SurfaceSyncObj.h70 bool isDequeueableLocked(uint32_t *waitId = nullptr);
80 bool notifyQueuedLocked(uint32_t *waitId = nullptr);
112 c2_status_t waitForChange(uint32_t waitId, c2_nsecs_t timeoutNs);
H A DC2FenceFactory.h40 uint32_t waitId);