[ekiga] Use g_usleep instead of PThread()::Current()->Sleep ()



commit cda6b3636fffa11d0383e23014da8a17a20e5283
Author: Julien Puydt <jpuydt free fr>
Date:   Thu Jan 17 22:16:56 2013 +0100

    Use g_usleep instead of PThread()::Current()->Sleep ()

 lib/engine/audioinput/audioinput-core.cpp   |    2 +-
 lib/engine/audiooutput/audiooutput-core.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/audioinput/audioinput-core.cpp b/lib/engine/audioinput/audioinput-core.cpp
index e503d8d..43281b7 100644
--- a/lib/engine/audioinput/audioinput-core.cpp
+++ b/lib/engine/audioinput/audioinput-core.cpp
@@ -344,7 +344,7 @@ void AudioInputCore::get_frame_data (char *data,
 {
   if (yield) {
     yield = false;
-     PThread::Current()->Sleep(5);
+    g_usleep (5);
   }
   PWaitAndSignal m_var(core_mutex);
 
diff --git a/lib/engine/audiooutput/audiooutput-core.cpp b/lib/engine/audiooutput/audiooutput-core.cpp
index a085b28..0c0e109 100644
--- a/lib/engine/audiooutput/audiooutput-core.cpp
+++ b/lib/engine/audiooutput/audiooutput-core.cpp
@@ -310,7 +310,7 @@ void AudioOutputCore::set_frame_data (const char *data,
 {
   if (yield) {
     yield = false;
-    PThread::Current()->Sleep(5);
+    g_usleep (5);
   }
   PWaitAndSignal m_pri(core_mutex[primary]);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]