Link to home
Start Free TrialLog in
Avatar of ambuli
ambuliFlag for United States of America

asked on

Event dispatcher in C

Hi Experts,

I want to implement an event dispatcher in C.  Basically, I want to provide a mechanism to subscribe to events and call the callback functions provided in the subscribe call when events needed to be sent.

I am thinking of having a thread that would post events to a queue whenever events are available.  Another thread checks the queue and calls the callback functions when there is events.  I want to know if there is any example available online.  thanks.
SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial