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

Definition at line 73 of file dim_thr_old.c.

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

Referenced by dim_init().

74 {
75  extern int dim_dtq_init();
76  extern int dtq_task();
77  /*
78  int prio;
79 
80  thr_getprio(thr_self(),&prio);
81  thr_setprio(thr_self(),prio+5);
82  */
83  if(tag){}
84  ALRM_thread = pthread_self();
85 
86  dim_dtq_init(1);
87  while(1)
88  {
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  dtq_task();
98  /*
99 #ifndef darwin
100  sem_post(&DIM_WAIT_Sema);
101 #else
102  sem_post(DIM_WAIT_Semap);
103 #endif
104  */
105  dim_signal_cond();
106  }
107 }
int dtq_task(void *dummy)
Definition: dtq.c:307
int dim_dtq_init(int thr_flag)
Definition: dtq.c:91
pthread_t INIT_thread
Definition: dim_thr_old.c:20
void dim_signal_cond()
Definition: dim_thr_old.c:478
pthread_t ALRM_thread
Definition: dim_thr_old.c:19
sem_t DIM_INIT_Sema
Definition: dim_thr_old.c:23

+ Here is the call graph for this function:

+ Here is the caller graph for this function: