Project

General

Profile

Feature #504

cron-like service

Added by Anonymous about 11 years ago. Updated about 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/09/2010
Due date:
% Done:

0%

Estimated time:

Description

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.

#1

Updated by Koen Deforche about 11 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 :-)

Also available in: Atom PDF