本文整理汇总了C++中AssertCurrentThreadInMonitor函数的典型用法代码示例。如果您正苦于以下问题:C++ AssertCurrentThreadInMonitor函数的具体用法?C++ AssertCurrentThreadInMonitor怎么用?C++ AssertCurrentThreadInMonitor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AssertCurrentThreadInMonitor函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AssertCurrentThreadInMonitor
void
AudioSink::SetPlaying(bool aPlaying)
{
AssertCurrentThreadInMonitor();
mPlaying = aPlaying;
GetReentrantMonitor().NotifyAll();
}
示例2: AssertCurrentThreadInMonitor
void
AudioSink::StopPlayback()
{
AssertCurrentThreadInMonitor();
mPlaying = false;
GetReentrantMonitor().NotifyAll();
}
示例3: AssertCurrentThreadInMonitor
void
AudioSink::Cleanup()
{
AssertCurrentThreadInMonitor();
nsRefPtr<AudioStream> audioStream;
audioStream.swap(mAudioStream);
mStateMachine->OnAudioSinkComplete();
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
audioStream->Shutdown();
}
示例4: MOZ_ASSERT
void
AudioSink::Drain()
{
MOZ_ASSERT(mPlaying && !mAudioStream->IsPaused());
AssertCurrentThreadInMonitor();
// If the media was too short to trigger the start of the audio stream,
// start it now.
mAudioStream->Start();
{
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
mAudioStream->Drain();
}
}
示例5: AssertCurrentThreadInMonitor
void
AudioSink::Cleanup()
{
AssertCurrentThreadInMonitor();
nsRefPtr<AudioStream> audioStream;
audioStream.swap(mAudioStream);
// Suppress the callback when the stop is requested by MediaDecoderStateMachine.
// See Bug 115334.
if (!mStopAudioThread) {
mStateMachine->DispatchOnAudioSinkComplete();
}
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
audioStream->Shutdown();
}