Are there TimerCallback libraries implemented using STL. I can’t bring in Boost dependency into my project.
The timer on expiry should be able to callback the registered function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no specific timer in the standard library, but it’s easy enough to implement one:
Example of use:
Beware that the function is invoked on another thread, so make sure any data it accesses is suitably guarded.