I am writing a C++ application that, among other duties, periodically (once in hour) makes requests to server.
This scheduled task can be interrupted and forced to execute earlier (when application receives new user data). I've decided to use ConcRT for this purpose.

  • Is there any standard way of such scheduling (like Timer Queues in Win32) but with tasks and task groups?
  • Or I just should chain tasks with continuations?
  • Maybe Agents Library is more suitable for this? (I thought of it as overkill for my problem)

P.S. HTTP requests are made with good-old WinHTTP (executable must not rely on third-party libraries and keep it's size small). So is there any asynchronous implementations of HTTP request functionality, compliant with ConcRT mechanisms?

有帮助吗?

解决方案

You can use the concurrency::timer class in for this

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top