|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
My two cents ... I work on an application that needs timers ... these timers need not timeout at the exact milli/microsecond but need to timeout at reasonable time intervals. So we implemented a timers mechanism that is internal to the application. These timers are decremented based on a function call that is called every once in a while by the application main thread. Once the timer reaches zero, the function associated with the timer is called. These function could be just plain c functions or could be more complex C++ member functions (based on the way the timers are implemented) ... Though my application is single threaded, this kind of timer implementation allows me to time slice for each module in my application. Therefore if one module take forever to come out of the timer function, it holds up the timer mechanism. You could be more adventurous and try a multi threaded implementation.
_______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/redhat-devel-list