From 5d0d804d26683f2bbeba601532fd60329a0fe99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Fri, 28 Aug 2015 11:09:14 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@151 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- AUTHORS.txt | 2 +- src/thread/pithread.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AUTHORS.txt b/AUTHORS.txt index 58a270af..bd85159d 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -1,2 +1,2 @@ Pelipenko Ivan (peri4) peri4ko@yandex.ru -Bychkov Andrey (andrey) work.a.b@yandex.ru +Bychkov Andrey (andrey) work.a.b@yandex.ru diff --git a/src/thread/pithread.cpp b/src/thread/pithread.cpp index c41e2d12..7a0478f7 100755 --- a/src/thread/pithread.cpp +++ b/src/thread/pithread.cpp @@ -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