Built-in service providing thread-safe running deffered tasks (eg with DBO-objects)
For example: increase some field of some object per 1 each 10 seconds
Using of asio deadline_timer is recommended by Wt developers. But it causes running of thread and problems with synchronization.
Updated by Koen Deforche about 12 years ago
I believe that in fact it would be really nice to have a boost::asio::io_service proxy which you can use for e.g. this asio deadline_timer but also for any operation that is supported by boost::asio::io_service (including networking operations). This proxy is then responsible for requiring that not only the underlying event is generated but also that the respective session lock is available and locked before invoking the corresponding callback function.
If that would be possible with boost::asio, and, if we could figure out how to do it :-)