566 | | // set the handler's thread parameters |
---|
567 | | // receive handlers have lower priority than the client thread |
---|
568 | | // since they have ISO side buffering |
---|
569 | | // xmit handlers have higher priority since we want client side |
---|
570 | | // frames to be put into the ISO buffers ASAP |
---|
571 | | int thread_prio; |
---|
572 | | if (stream->getType()==StreamProcessor::ePT_Receive) { |
---|
573 | | thread_prio = m_priority - 1; |
---|
574 | | if (thread_prio < THREAD_MIN_RTPRIO) thread_prio = THREAD_MIN_RTPRIO; |
---|
575 | | } else { |
---|
576 | | thread_prio = m_priority + 1; |
---|
577 | | if (thread_prio > THREAD_MAX_RTPRIO) thread_prio = THREAD_MAX_RTPRIO; |
---|
578 | | } |
---|
579 | | |
---|