summaryrefslogtreecommitdiff
path: root/libs/qm-dsp/thread/Thread.cpp
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-06 00:16:44 +0200
committerRobin Gareus <robin@gareus.org>2016-10-06 00:57:53 +0200
commitf68d2e06bcfb81efda107d3b4c3aa7dbc2d73bc2 (patch)
tree286d5b2b1c3573c2fbfc77b4d29b0b2a6bfa9686 /libs/qm-dsp/thread/Thread.cpp
parent2a27cc475867612afd261e5bf3b2a1a42b9c75cc (diff)
update qm-dsp library
Diffstat (limited to 'libs/qm-dsp/thread/Thread.cpp')
-rw-r--r--libs/qm-dsp/thread/Thread.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/qm-dsp/thread/Thread.cpp b/libs/qm-dsp/thread/Thread.cpp
index b2dd236051..85dcec3155 100644
--- a/libs/qm-dsp/thread/Thread.cpp
+++ b/libs/qm-dsp/thread/Thread.cpp
@@ -58,9 +58,9 @@ Thread::start()
#endif
m_extant = true;
}
-}
+}
-void
+void
Thread::wait()
{
if (m_extant) {
@@ -233,7 +233,7 @@ Condition::unlock()
ReleaseMutex(m_mutex);
}
-void
+void
Condition::wait(int us)
{
if (us == 0) {
@@ -248,7 +248,7 @@ Condition::wait(int us)
DWORD ms = us / 1000;
if (us > 0 && ms == 0) ms = 1;
-
+
#ifdef DEBUG_CONDITION
cerr << "CONDITION DEBUG: " << (void *)GetCurrentThreadId() << ": Timed waiting on " << &m_condition << " \"" << m_name << "\"" << endl;
#endif
@@ -310,9 +310,9 @@ Thread::start()
#endif
m_extant = true;
}
-}
+}
-void
+void
Thread::wait()
{
if (m_extant) {
@@ -490,7 +490,7 @@ Condition::unlock()
pthread_mutex_unlock(&m_mutex);
}
-void
+void
Condition::wait(int us)
{
if (us == 0) {
@@ -514,7 +514,7 @@ Condition::wait(int us)
struct timespec timeout;
timeout.tv_sec = now.tv_sec;
timeout.tv_nsec = now.tv_usec * 1000;
-
+
#ifdef DEBUG_CONDITION
cerr << "CONDITION DEBUG: " << (void *)pthread_self() << ": Timed waiting on " << &m_condition << " \"" << m_name << "\"" << endl;
#endif
@@ -551,9 +551,9 @@ void
Thread::start()
{
abort();
-}
+}
-void
+void
Thread::wait()
{
abort();
@@ -611,7 +611,7 @@ Condition::lock()
abort();
}
-void
+void
Condition::wait(int us)
{
abort();