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