X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FSound%2Fvoice.hxx;h=39dae579ac1cac98f792c2416e92729923468f86;hb=8b57675aef4930245a964816469be922e3004287;hp=ae899476e31b6e92b6a0e03e8136833b0d0e37b4;hpb=1f6e343a7bbe3af57f81cde3c4eabc50186530d3;p=flightgear.git diff --git a/src/Sound/voice.hxx b/src/Sound/voice.hxx index ae899476e..39dae579a 100644 --- a/src/Sound/voice.hxx +++ b/src/Sound/voice.hxx @@ -37,14 +37,17 @@ #include
#if defined(ENABLE_THREADS) -# include +# include +# include +# include +# include # include #else # include - SG_USING_STD(queue); + using std::queue; #endif // ENABLE_THREADS -SG_USING_STD(vector); +using std::vector; @@ -74,16 +77,16 @@ private: #if defined(ENABLE_THREADS) -class FGVoiceMgr::FGVoiceThread : public SGThread { +class FGVoiceMgr::FGVoiceThread : public OpenThreads::Thread { public: FGVoiceThread(FGVoiceMgr *mgr) : _mgr(mgr) {} void run(); void wake_up() { _jobs.signal(); } private: - void wait_for_jobs() { SGGuard g(_mutex); _jobs.wait(_mutex); } - SGPthreadCond _jobs; - SGMutex _mutex; + void wait_for_jobs() { OpenThreads::ScopedLock g(_mutex); _jobs.wait(&_mutex); } + OpenThreads::Condition _jobs; + OpenThreads::Mutex _mutex; FGVoiceMgr *_mgr; }; #endif @@ -104,7 +107,6 @@ public: private: class FGVoiceListener; SGSocket *_sock; - bool _connected; double _volume; double _pitch; double _speed;