]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/voice.hxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Sound / voice.hxx
index eb4201dced0537fe1cac8b54a0a97ca35fa46b30..ae899476e31b6e92b6a0e03e8136833b0d0e37b4 100644 (file)
@@ -81,7 +81,7 @@ public:
        void wake_up() { _jobs.signal(); }
 
 private:
-       void wait_for_jobs() { _mutex.lock(); _jobs.wait(_mutex); _mutex.unlock(); }
+       void wait_for_jobs() { SGGuard<SGMutex> g(_mutex); _jobs.wait(_mutex); }
        SGPthreadCond _jobs;
        SGMutex _mutex;
        FGVoiceMgr *_mgr;