git-svn-id: svn://db.shs.com.ru/pip@161 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-10-05 07:53:40 +00:00
parent ad860cd841
commit ddb2155887

View File

@@ -328,7 +328,7 @@ void PIThread::setPriority(PIThread::Priority prior) {
__sched_priority
# endif
= priority2System(priority_);
pthread_setschedparam(thread, policy_, &sparam);
pthread_setschedparam(pthread_self(), policy_, &sparam);
#else
if (!running_ && (thread != 0)) return;
SetThreadPriority(thread, priority2System(priority_));