FACT++  1.0
int main ( void  )

Definition at line 85 of file rpc_client.cxx.

References dim_init(), dim_start_thread(), do_work(), and i.

86 {
87  int i;
88 
89  dim_init();
90 // DimClient::setNoDataCopy();
91 
92  for(i = 0; i < 1; i++)
93  {
94  dim_start_thread(do_work,(void *)i);
95  }
96 // do_workCB();
97  while(1)
98  pause();
99  /*
100  int rpcValue = 0;
101 // DimRpcInfo rpc("TESTRPC/INT",-1);
102  Rpc rpcCB("TESTRPC/INT");
103  RpcStruct rpcStruct("TESTRPC/STRUCT");
104  MyStruct myStruct;
105 
106  strcpy(myStruct.str1,"hello");
107  strcpy(myStruct.str2,"world");
108  myStruct.int1 = 1;
109  while(1)
110  {
111  dim_print_date_time();
112  cout << "Sending " << rpcValue << endl;
113  rpcCB.setData(rpcValue);
114  rpcValue++;
115 // sleep(5);
116  rpcStruct.setData(&myStruct, sizeof(myStruct));
117  myStruct.int1++;
118 // rpc.setData(rpcValue);
119 // rpcValue = rpc.getInt();
120 // cout << "RPC Received : " << rpcValue << endl;
121  sleep(10);
122  }
123  return 0;
124  */
125 }
int i
Definition: db_dim_client.c:21
dim_long dim_start_thread(void *(*thread_ast)(void *), dim_long tag)
Definition: dim_thr.c:231
void do_work(void *tag)
Definition: rpc_client.cxx:37
void dim_init()
Definition: dim_thr.c:111

+ Here is the call graph for this function: