diff --git a/src/OpenThreads/pthreads/PThread.cpp b/src/OpenThreads/pthreads/PThread.cpp index f58d798b4..b805331ec 100644 --- a/src/OpenThreads/pthreads/PThread.cpp +++ b/src/OpenThreads/pthreads/PThread.cpp @@ -52,7 +52,6 @@ #endif #include -#include #include "PThreadPrivateData.h" #include @@ -193,8 +192,7 @@ private: int status = pthread_setspecific(PThreadPrivateData::s_tls_key, thread); if (status) { - OSG_NOTICE<<"pthread_setspecific(,) returned error status: "<getProcessId()<<") : Get sched: "<getProcessId(), - strerror(status));*/ + strerror(status)); } else { - OSG_NOTICE<<"THREAD INFO - ID("<getProcessId()<<") :\ - Thread running at "<<(my_policy == SCHED_FIFO ? "SCHEDULE_FIFO" - : (my_policy == SCHED_RR ? "SCHEDULE_ROUND_ROBIN" - : (my_policy == SCHED_OTHER ? "SCHEDULE_OTHER" - : "UNKNOWN")))<<"/ Priority: "<<\ - my_param.sched_priority<getProcessId(), (my_policy == SCHED_FIFO ? "SCHEDULE_FIFO" : (my_policy == SCHED_RR ? "SCHEDULE_ROUND_ROBIN" : (my_policy == SCHED_OTHER ? "SCHEDULE_OTHER" : "UNKNOWN"))), - my_param.sched_priority);*/ + my_param.sched_priority); max_priority = sched_get_priority_max(my_policy); min_priority = sched_get_priority_min(my_policy); - OSG_NOTICE<<"THREAD INFO - ID("<getProcessId()<<") :\ - Max priority: "<getProcessId(), - max_priority, min_priority);*/ - + max_priority, min_priority); } } else { - OSG_NOTICE<<"THREAD INFO - ID("<getProcessId()<<") :\ - POSIX Priority scheduling not available"<getProcessId());*/ + (int)thread->getProcessId()); } fflush(stdout); @@ -486,8 +472,7 @@ void Thread::Init() int status = pthread_key_create(&PThreadPrivateData::s_tls_key, NULL); if (status) { - OSG_NOTICE<<"pthread_key_create() returned error status: "<