From 1f44e0210cd600c92351a90ace3d7f612065c7ac 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:39:15 +0000 Subject: [PATCH] test git-svn-id: svn://db.shs.com.ru/pip@159 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/thread/pithread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thread/pithread.cpp b/src/thread/pithread.cpp index 7a0478f7..4dbf9251 100755 --- a/src/thread/pithread.cpp +++ b/src/thread/pithread.cpp @@ -320,7 +320,8 @@ void PIThread::setPriority(PIThread::Priority prior) { if (!running_ && (thread != 0)) return; policy_ = 0; memset(&sparam, 0, sizeof(sparam)); - pthread_getschedparam(thread, &policy_, &sparam); + struct sched_param param; + pthread_getschedparam(thread, &policy_, ¶m); sparam. # ifndef LINUX sched_priority