bool CThread::SetPriority(int priority) { #ifdef _WIN32 return ThreadSetPriority( (ThreadHandle_t)m_hThread, priority ); #elif _LINUX return ThreadSetPriority( (ThreadHandle_t)m_threadId, priority ); #endif }
void * SendPMPoll(void *arg) { char fn[] = "SendPMPoll(): "; #ifndef NETOID_LINUX ThreadSetRT(); #endif ThreadSetPriority(pthread_self(), SCHED_RR, 50); // Loop Forever for ( ; ; ) { Sendpoll(0); sleep(POLL_TIME_OUT); } }