Browse Source

Revert unwanted change in thread classes

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2448 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 17 years ago
parent
commit
3861dc6efe
3 changed files with 1 additions and 7 deletions
  1. +1
    -3
      common/JackPosixThread.cpp
  2. +0
    -2
      macosx/JackMachThread.cpp
  3. +0
    -2
      windows/JackWinThread.cpp

+ 1
- 3
common/JackPosixThread.cpp View File

@@ -40,7 +40,7 @@ void* JackPosixThread::ThreadHandler(void* arg)
jack_error("pthread_setcanceltype err = %s", strerror(err));
}
//set_threaded_log_function();
set_threaded_log_function();
// Signal creation thread when started with StartSync
jack_log("ThreadHandler: start");
@@ -204,7 +204,6 @@ int JackPosixThread::AcquireRealTimeImp(pthread_t thread, int priority)
strerror(res));
return -1;
}
fRealTime = true;
return 0;
}

@@ -224,7 +223,6 @@ int JackPosixThread::DropRealTimeImp(pthread_t thread)
jack_error("Cannot switch to normal scheduling priority(%s)\n", strerror(errno));
return -1;
}
fRealTime = false;
return 0;
}



+ 0
- 2
macosx/JackMachThread.cpp View File

@@ -177,7 +177,6 @@ int JackMachThread::AcquireRealTimeImp(pthread_t thread, UInt64 period, UInt64 c
UInt64 int_computation;
UInt64 int_constraint;
GetParams(&int_period, &int_computation, &int_constraint);
fRealTime = true;
return 0;
}

@@ -189,7 +188,6 @@ int JackMachThread::DropRealTime()
int JackMachThread::DropRealTimeImp(pthread_t thread)
{
SetThreadToPriority(thread, 63, false, 0, 0, 0);
fRealTime = false;
return 0;
}



+ 0
- 2
windows/JackWinThread.cpp View File

@@ -175,7 +175,6 @@ int JackWinThread::AcquireRealTimeImp(pthread_t thread, int priority)
jack_log("JackWinThread::AcquireRealTime");

if (SetThreadPriority(thread, THREAD_PRIORITY_TIME_CRITICAL)) {
fRealTime = true;
return 0;
} else {
jack_error("Cannot set thread priority = %d", GetLastError());
@@ -190,7 +189,6 @@ int JackWinThread::DropRealTime()
int JackWinThread::DropRealTimeImp(pthread_t thread)
{
if (SetThreadPriority(thread, THREAD_PRIORITY_NORMAL)) {
fRealTime = false;
return 0;
} else {
jack_error("Cannot set thread priority = %d", GetLastError());


Loading…
Cancel
Save