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

Definition at line 39 of file dim_thr_old.c.

References DIM_INIT_Sema, dim_signal_cond(), dim_tcpip_init(), INIT_thread, IO_thread, and tcpip_task().

Referenced by dim_init().

40 {
41  extern int dim_tcpip_init();
42  extern void tcpip_task();
43  /*
44  int prio;
45 
46  thr_getprio(thr_self(),&prio);
47  thr_setprio(thr_self(),prio+10);
48  */
49  if(tag){}
50  IO_thread = pthread_self();
51 
52  dim_tcpip_init(1);
53  while(1)
54  {
55  if(INIT_thread)
56 #ifndef darwin
57  sem_post(&DIM_INIT_Sema);
58 #else
59  sem_post(DIM_INIT_Semap);
60 #endif
61  tcpip_task();
62  /*
63 #ifndef darwin
64  sem_post(&DIM_WAIT_Sema);
65 #else
66  sem_post(DIM_WAIT_Semap);
67 #endif
68  */
70  }
71 }
int dim_tcpip_init(int thr_flag)
Definition: tcpip.c:235
pthread_t INIT_thread
Definition: dim_thr_old.c:20
pthread_t IO_thread
Definition: dim_thr_old.c:18
void dim_signal_cond()
Definition: dim_thr_old.c:478
void tcpip_task(void *dummy)
Definition: tcpip.c:859
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: