Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top