I put together a C++ 11 based callback timer class based on the help I got on SO on this thread.
Now what I would like to do is have this thread post a message to the main thread to call a particular function. So the func()
call in the timer class should happen in the main thread rather than the current thread.
This is similar to the Qt signal/slot
mechanism where the signal
can happen in another thread but the flow gets executed in the thread of the receiver
object. Is this possible with the C++ 11 mechanisms?