From ddb215588719f4b4548025774b4a68496bdb5933 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:53:40 +0000 Subject: [PATCH] test git-svn-id: svn://db.shs.com.ru/pip@161 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/thread/pithread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/pithread.cpp b/src/thread/pithread.cpp index 90ee03a8..428762f6 100755 --- a/src/thread/pithread.cpp +++ b/src/thread/pithread.cpp @@ -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_));