From ad860cd841a156674628afd0144f7ac2d972d5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 5 Oct 2015 07:48:31 +0000 Subject: [PATCH] test git-svn-id: svn://db.shs.com.ru/pip@160 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/thread/pithread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/thread/pithread.cpp b/src/thread/pithread.cpp index 4dbf9251..90ee03a8 100755 --- a/src/thread/pithread.cpp +++ b/src/thread/pithread.cpp @@ -320,8 +320,7 @@ void PIThread::setPriority(PIThread::Priority prior) { if (!running_ && (thread != 0)) return; policy_ = 0; memset(&sparam, 0, sizeof(sparam)); - struct sched_param param; - pthread_getschedparam(thread, &policy_, ¶m); + pthread_getschedparam(pthread_self(), &policy_, &sparam); sparam. # ifndef LINUX sched_priority