git-svn-id: svn://db.shs.com.ru/pip@151 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2015-08-28 11:09:14 +00:00
parent 99cd95402c
commit 5d0d804d26
2 changed files with 3 additions and 1 deletions

View File

@@ -318,6 +318,8 @@ void PIThread::setPriority(PIThread::Priority prior) {
priority_ = prior;
#ifndef WINDOWS
if (!running_ && (thread != 0)) return;
policy_ = 0;
memset(&sparam, 0, sizeof(sparam));
pthread_getschedparam(thread, &policy_, &sparam);
sparam.
# ifndef LINUX