#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
i_ret = pthread_create( &p_this->thread_id, NULL, func, p_data );
- if ( i_priority
#ifndef SYS_DARWIN
- && config_GetInt( p_this, "rt-priority" )
+ if ( config_GetInt( p_this, "rt-priority" ) )
#endif
- )
{
int i_error, i_policy;
struct sched_param param;
memset( ¶m, 0, sizeof(struct sched_param) );
i_priority += config_GetInt( p_this, "rt-offset" );
- if ( i_priority < 0 )
+ if ( i_priority <= 0 )
{
param.sched_priority = (-1) * i_priority;
i_policy = SCHED_OTHER;
}
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
- if ( i_priority
#ifndef SYS_DARWIN
- && config_GetInt( p_this, "rt-priority" )
+ if ( config_GetInt( p_this, "rt-priority" ) )
#endif
- )
{
int i_error, i_policy;
struct sched_param param;
memset( ¶m, 0, sizeof(struct sched_param) );
i_priority += config_GetInt( p_this, "rt-offset" );
- if ( i_priority < 0 )
+ if ( i_priority <= 0 )
{
param.sched_priority = (-1) * i_priority;
i_policy = SCHED_OTHER;