FACT++  1.0
int dim_get_priority ( int  threadId,
int *  prio 
)

Definition at line 325 of file dim_thr_old.c.

References ALRM_thread, IO_thread, and MAIN_thread.

Referenced by dim_signal_cond().

326 {
327 #ifdef __linux__
328  pthread_t id=MAIN_thread;
329  int ret;
330  int pclass;
331  struct sched_param param;
332 
333  if(threadId == 1)
334  id = MAIN_thread;
335  else if(threadId == 2)
336  id = IO_thread;
337  else if(threadId == 3)
338  id = ALRM_thread;
339 
340  ret = pthread_getschedparam(id, &pclass, &param);
341  *prio = param.sched_priority;
342  if(!ret)
343  return 1;
344 #endif
345  return 0;
346 }
pthread_t MAIN_thread
Definition: dim_thr_old.c:21
pthread_t IO_thread
Definition: dim_thr_old.c:18
pthread_t ALRM_thread
Definition: dim_thr_old.c:19

+ Here is the caller graph for this function: