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

Definition at line 333 of file dim_thr.c.

References ALRM_thread, IO_thread, and MAIN_thread.

Referenced by dim_signal_cond().

334 {
335 #ifdef __linux__
336  pthread_t id=MAIN_thread;
337  int ret;
338  int pclass;
339  struct sched_param param;
340 
341  if(threadId == 1)
342  id = MAIN_thread;
343  else if(threadId == 2)
344  id = IO_thread;
345  else if(threadId == 3)
346  id = ALRM_thread;
347 
348  ret = pthread_getschedparam(id, &pclass, &param);
349  *prio = param.sched_priority;
350  if(!ret)
351  return 1;
352 #endif
353  return 0;
354 }
pthread_t IO_thread
Definition: dim_thr.c:18
pthread_t MAIN_thread
Definition: dim_thr.c:21
pthread_t ALRM_thread
Definition: dim_thr.c:19

+ Here is the caller graph for this function: