summaryrefslogtreecommitdiff
path: root/muse2/muse/thread.cpp
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2011-10-07 04:23:17 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2011-10-07 04:23:17 +0000
commit5367067f7a36dce8a362dcc000d41ac581bffdfe (patch)
tree0407ed68b4470749820b5bc6fb06d43388a83e97 /muse2/muse/thread.cpp
parentf16b2037025918e32c5fd90527f76e1102e5ecb9 (diff)
clean residual namespace work. fix python control build.
Diffstat (limited to 'muse2/muse/thread.cpp')
-rw-r--r--muse2/muse/thread.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/muse2/muse/thread.cpp b/muse2/muse/thread.cpp
index ce11fba6..8fe0cdb8 100644
--- a/muse2/muse/thread.cpp
+++ b/muse2/muse/thread.cpp
@@ -32,6 +32,8 @@
#include "globals.h"
#include "errno.h"
+namespace MusECore {
+
//---------------------------------------------------------
// Thread
//---------------------------------------------------------
@@ -104,7 +106,7 @@ void Thread::start(int prio, void* ptr)
/*
- if (pthread_create(&thread, attributes, ::loop, this))
+ if (pthread_create(&thread, attributes, MusECore::loop, this))
perror("creating thread failed:");
// else
// {
@@ -114,7 +116,7 @@ void Thread::start(int prio, void* ptr)
*/
- int rv = pthread_create(&thread, attributes, ::loop, this);
+ int rv = pthread_create(&thread, attributes, MusECore::loop, this);
if(rv)
{
// p4.0.16: MusEGlobal::realTimeScheduling is unreliable. It is true even in some clearly non-RT cases.
@@ -122,7 +124,7 @@ void Thread::start(int prio, void* ptr)
// MusE was failing with a stock kernel because of PTHREAD_EXPLICIT_SCHED.
// So we'll just have to try again without attributes.
if (MusEGlobal::realTimeScheduling && _realTimePriority > 0)
- rv = pthread_create(&thread, NULL, ::loop, this);
+ rv = pthread_create(&thread, NULL, MusECore::loop, this);
}
if(rv)
@@ -481,3 +483,4 @@ void Thread::readMsg1(int size)
processMsg1(buffer);
}
+} // namespace MusECore