Skip to content

Instantly share code, notes, and snippets.

@FlyingJester
Created September 11, 2014 19:17
Show Gist options
  • Select an option

  • Save FlyingJester/b3b399ad594e1ca5e9e1 to your computer and use it in GitHub Desktop.

Select an option

Save FlyingJester/b3b399ad594e1ca5e9e1 to your computer and use it in GitHub Desktop.
class MediaCodecSynchro {
public:
Monitor mMonitor;
// Only these members are protected by mMonitor.
bool mFlush;
bool mDie;
bool mSleeping;
// These members are references to parts of the decoder.
SampleMetaQueue &mQueue;
Mutex &mQueueLock;
Mutex &mBufferLock;
MediaCodecSynchro(SampleMetaQueue &aQueue, Mutex &aQueueLock,
Mutex &aBufferLock);
~MediaCodecSynchro();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment