FACT++  1.0
void* dim_dtq_thread ( void *  tag)

Definition at line 75 of file dim_thr.c.

References ALRM_thread, dim_dtq_init(), DIM_INIT_Sema, dim_signal_cond(), dtq_task(), and INIT_thread.

Referenced by dim_init().

76 {
77  extern int dim_dtq_init();
78  extern int dtq_task();
79  /*
80  int prio;
81 
82  thr_getprio(thr_self(),&prio);
83  thr_setprio(thr_self(),prio+5);
84  */
85  if(tag){}
86  ALRM_thread = pthread_self();
87 
88  dim_dtq_init(1);
89  if(INIT_thread)
90  {
91 #ifndef darwin
92  sem_post(&DIM_INIT_Sema);
93 #else
94  sem_post(DIM_INIT_Semap);
95 #endif
96  }
97  while(1)
98  {
99  dtq_task();
100  /*
101 #ifndef darwin
102  sem_post(&DIM_WAIT_Sema);
103 #else
104  sem_post(DIM_WAIT_Semap);
105 #endif
106  */
107  dim_signal_cond();
108  }
109 }
int dtq_task(void *dummy)
Definition: dtq.c:307
pthread_t INIT_thread
Definition: dim_thr.c:20
int dim_dtq_init(int thr_flag)
Definition: dtq.c:91
void dim_signal_cond()
Definition: dim_thr.c:500
pthread_t ALRM_thread
Definition: dim_thr.c:19
sem_t DIM_INIT_Sema
Definition: dim_thr.c:23

+ Here is the call graph for this function:

+ Here is the caller graph for this function: