这篇教程C++ AssertCurrentThreadInMonitor函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中AssertCurrentThreadInMonitor函数的典型用法代码示例。如果您正苦于以下问题:C++ AssertCurrentThreadInMonitor函数的具体用法?C++ AssertCurrentThreadInMonitor怎么用?C++ AssertCurrentThreadInMonitor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了AssertCurrentThreadInMonitor函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: AssertCurrentThreadInMonitorvoidAudioSink::SetPlaying(bool aPlaying){ AssertCurrentThreadInMonitor(); mPlaying = aPlaying; GetReentrantMonitor().NotifyAll();}
开发者ID:darchons,项目名称:gecko-dev,代码行数:7,
示例2: AssertCurrentThreadInMonitorvoidAudioSink::StopPlayback(){ AssertCurrentThreadInMonitor(); mPlaying = false; GetReentrantMonitor().NotifyAll();}
开发者ID:andrenatal,项目名称:gecko-dev,代码行数:7,
示例3: AssertCurrentThreadInMonitorvoidAudioSink::Cleanup(){ AssertCurrentThreadInMonitor(); nsRefPtr<AudioStream> audioStream; audioStream.swap(mAudioStream); mStateMachine->OnAudioSinkComplete(); ReentrantMonitorAutoExit exit(GetReentrantMonitor()); audioStream->Shutdown();}
开发者ID:Belxjander,项目名称:tenfourfox,代码行数:11,
示例4: MOZ_ASSERTvoidAudioSink::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(); }}
开发者ID:darchons,项目名称:gecko-dev,代码行数:13,
示例5: AssertCurrentThreadInMonitorvoidAudioSink::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();}
开发者ID:nixiValor,项目名称:Waterfox,代码行数:15,
注:本文中的AssertCurrentThreadInMonitor函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ AssertEx函数代码示例 C++ AssertCompile函数代码示例 |