index 188890e6c45c0679f5419a783008bee2d19cb31d..8d147d0d24987f9f4645ce0551fa6cf5653f3f8a 100755 (executable)
200LL, //every second
&err);
else
200LL, //every second
&err);
else
+ {
t3 = netapi_TimerGroupStartTimer(
th,
(void *) 3,
300LL, //every second
&err);
t3 = netapi_TimerGroupStartTimer(
th,
(void *) 3,
300LL, //every second
&err);
+ //cancel 1 and restart 1
+ netapi_TimerGroupCancel(th,t1,&err);
+ t1 = netapi_TimerGroupStartTimer(
+ th,
+ (void *) 1,
+ 100LL, //every second
+ &err);
+
+
+ }
tx = netapi_TimerGetNext(fired_list,tx);
tx = netapi_TimerGetNext(fired_list,tx);
0, //1 if timers local to thread
0, //1 if expect to cancel
netapi_getTicksPerSec()/100, /* 10 msc resolution for these timers */
0, //1 if timers local to thread
0, //1 if expect to cancel
netapi_getTicksPerSec()/100, /* 10 msc resolution for these timers */
+ netapi_getTicksPerSec()/1000, /* would like 1msc tolerence */
100,
&err);
if (err) {printf("timergroupcreate failed %d\n",err); exit(1);}
100,
&err);
if (err) {printf("timergroupcreate failed %d\n",err); exit(1);}