git-svn-id: svn://db.shs.com.ru/pip@159 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-10-05 07:39:15 +00:00
parent 6c8c75b090
commit 1f44e0210c

View File

@@ -320,7 +320,8 @@ void PIThread::setPriority(PIThread::Priority prior) {
if (!running_ && (thread != 0)) return; if (!running_ && (thread != 0)) return;
policy_ = 0; policy_ = 0;
memset(&sparam, 0, sizeof(sparam)); memset(&sparam, 0, sizeof(sparam));
pthread_getschedparam(thread, &policy_, &sparam); struct sched_param param;
pthread_getschedparam(thread, &policy_, &param);
sparam. sparam.
# ifndef LINUX # ifndef LINUX
sched_priority sched_priority