C++ Simple Posix Timer
Posted on 2010-09-01
What's the simplest bare bones method of creating a timer to handle this situation:
I have a program running that will always be getting messages and doing internal processing. Every 10 seconds on top of this (or some other arbitrary number), I would like to get a signal from a timer which calls one of the methods on a singleton class within the program (just a callback really).
Anyway, I'm aware of the thread synch issues and all, but it's been a while since I've made a timer in a Unix/Linux environment so some code would be useful. :)