Lines Matching refs:syncVar
133 C2SyncVariables *syncVar = syncMem ? syncMem->mem() : nullptr; in attachToBufferQueue() local
135 if (syncVar) { in attachToBufferQueue()
136 syncVar->lock(); in attachToBufferQueue()
137 if (!syncVar->isDequeueableLocked() || in attachToBufferQueue()
138 syncVar->getSyncStatusLocked() == C2SyncVariables::STATUS_SWITCHING) { in attachToBufferQueue()
139 syncVar->unlock(); in attachToBufferQueue()
144 syncVar->notifyDequeuedLocked(); in attachToBufferQueue()
145 syncVar->unlock(); in attachToBufferQueue()
148 syncVar->lock(); in attachToBufferQueue()
149 syncVar->notifyQueuedLocked(); in attachToBufferQueue()
150 syncVar->unlock(); in attachToBufferQueue()
439 auto syncVar = syncMem ? syncMem->mem() : nullptr; in outputBuffer() local
440 if(syncVar) { in outputBuffer()
445 syncVar->lock(); in outputBuffer()
446 syncVar->notifyQueuedLocked(); in outputBuffer()
447 syncVar->unlock(); in outputBuffer()
495 auto syncVar = syncMem ? syncMem->mem() : nullptr; in outputBuffer() local
497 if (syncVar) { in outputBuffer()
502 syncVar->lock(); in outputBuffer()
503 syncVar->notifyQueuedLocked(); in outputBuffer()
504 syncVar->unlock(); in outputBuffer()
536 auto syncVar = syncMem ? syncMem->mem() : nullptr; in onBufferReleased() local
537 if (syncVar) { in onBufferReleased()
538 syncVar->lock(); in onBufferReleased()
539 syncVar->notifyQueuedLocked(); in onBufferReleased()
540 syncVar->unlock(); in onBufferReleased()
561 auto syncVar = mSyncMem ? mSyncMem->mem() : nullptr; in updateMaxDequeueBufferCount() local
562 if (syncVar && !mStopped) { in updateMaxDequeueBufferCount()
563 syncVar->lock(); in updateMaxDequeueBufferCount()
564 syncVar->updateMaxDequeueCountLocked(maxDequeueBufferCount); in updateMaxDequeueBufferCount()
565 syncVar->unlock(); in updateMaxDequeueBufferCount()