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

Definition at line 39 of file dim_thr.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  if(INIT_thread)
54  {
55 #ifndef darwin
56  sem_post(&DIM_INIT_Sema);
57 #else
58  sem_post(DIM_INIT_Semap);
59 #endif
60  }
61  while(1)
62  {
63  tcpip_task();
64  /*
65 #ifndef darwin
66  sem_post(&DIM_WAIT_Sema);
67 #else
68  sem_post(DIM_WAIT_Semap);
69 #endif
70  */
72  }
73 }
pthread_t INIT_thread
Definition: dim_thr.c:20
pthread_t IO_thread
Definition: dim_thr.c:18
void dim_signal_cond()
Definition: dim_thr.c:500
int dim_tcpip_init(int thr_flag)
Definition: tcpip.c:235
sem_t DIM_INIT_Sema
Definition: dim_thr.c:23
void tcpip_task(void *dummy)
Definition: tcpip.c:859

+ Here is the call graph for this function:

+ Here is the caller graph for this function: