Created
September 11, 2014 19:17
-
-
Save FlyingJester/b3b399ad594e1ca5e9e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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