Dear friends,
I am a new user of libevent, and now I have some questions about the timer event. As is in the sample codes in the libevent package, the timer event should be used as follows(in time_test.c):
...
event_init();
evtimer_set(...);
event_add(...);
event_dispatch();
....
However, if I move the some codes into another function like follows,something wrong happend and the debugger of VC 6.0 indicate that it is at RB_GENERATE(event_tree, event, ev_timeout_node, compare). I don't know the difference between them. Is it true that evtimer_set and event_add must be placed between event_init and event_dispatch()? I wish your help. Thanks a lot.
in main()
...
event_init();
timer_test();
event_dispatch();
...
in timer_test()
...
evtimer_set(...);
event_add(...);
...
------------------------------------------------------------------------------------------------------
_______________________________________________ Libevent-users mailing list [email protected] http://monkey.org/mailman/listinfo/libevent-users
