- Timestamp:
- 03/08/09 17:48:48 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
r9847 r9869 38 38 { 39 39 m_exit = true; 40 #if 0 41 while(isRunning()) { OpenThreads::YieldCurrentThread(); } 42 #else 40 43 join(); 44 #endif 41 45 } 42 46 } … … 86 90 87 91 92 void FFmpegDecoderAudio::close(bool waitForThreadToExit) 93 { 94 m_exit = true; 95 96 if (isRunning() && waitForThreadToExit) 97 { 98 while(isRunning()) { OpenThreads::Thread::YieldCurrentThread(); } 99 } 100 } 101 88 102 89 103 void FFmpegDecoderAudio::run() … … 104 118 } 105 119 } 106 107 120 108 121
