From 9620e00c4559c8d63fe36c99df0acbaecc9432bc Mon Sep 17 00:00:00 2001 From: ykiryanov Date: Sun, 2 May 2004 16:59:09 +0000 Subject: [PATCH] Fixed assert in setting priority to threads --- src/ptlib/unix/tlibbe.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ptlib/unix/tlibbe.cxx b/src/ptlib/unix/tlibbe.cxx index 0d2834d9..d477fb0a 100644 --- a/src/ptlib/unix/tlibbe.cxx +++ b/src/ptlib/unix/tlibbe.cxx @@ -27,6 +27,9 @@ * Contributor(s): Yuri Kiryanov, ykiryanov at users.sourceforge.net * * $Log$ + * Revision 1.26 2004/05/02 16:59:09 ykiryanov + * Fixed assert in setting priority to threads + * * Revision 1.25 2004/04/30 16:10:20 ykiryanov * Added PMutex code based on BLocker to support recursive locks * @@ -329,8 +332,9 @@ void PThread::SetPriority(Priority priorityLevel) mPriority = priorities[priorityLevel]; status_t result = ::set_thread_priority(mId, mPriority ); + if(result != B_OK) + PTRACE(0, "Changing thread priority failed, error " << strerror(result) << endl); - PAssert(result == B_OK, "Thread priority change error"); } -- 2.11.4.GIT