librpc/src/rpc_thread_factory.cc
/**
 * Converts generic posix thread schedule policy enums into pthread
 * API values.
 */
Converts generic posix thread schedule policy enums into pthread
API values.
Converts generic posix thread schedule policy enums into pthread API values .
static int toPthreadPolicy(rpc_thread_factory::POLICY policy) {
  switch (policy) {
    case rpc_thread_factory::OTHER:return SCHED_OTHER;
    case rpc_thread_factory::FIFO:return SCHED_FIFO;
    case rpc_thread_factory::ROUND_ROBIN:return SCHED_RR;
  }
  return SCHED_OTHER;
}
static int toPthreadPolicy ( rpc_thread_factory :: POLICY policy ) { switch ( policy ) { case rpc_thread_factory :: OTHER : return SCHED_OTHER ; case rpc_thread_factory :: FIFO : return SCHED_FIFO ; case rpc_thread_factory :: ROUND_ROBIN : return SCHED_RR ; } return SCHED_OTHER ; }
Converts generic posix thread schedule policy enums into pthread
 API values.
Converts generic posix thread schedule policy enums into pthread API values .