[ekiga/v4_0] Use g_usleep instead of PThread()::Current()->Sleep ()
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/v4_0] Use g_usleep instead of PThread()::Current()->Sleep ()
- Date: Mon, 18 Feb 2013 20:17:47 +0000 (UTC)
commit cb720db3891c205bae8db6423203ce7bb701b5d5
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 46c2576..a6a5e90 100644
--- a/lib/engine/audioinput/audioinput-core.cpp
+++ b/lib/engine/audioinput/audioinput-core.cpp
@@ -346,7 +346,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 f0e3c53..9f40325 100644
--- a/lib/engine/audiooutput/audiooutput-core.cpp
+++ b/lib/engine/audiooutput/audiooutput-core.cpp
@@ -308,7 +308,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]