Files
MaxScale/server/core
Johan Wikman 8174690f77 Introduce concept of Worker tasks
A Worker::Task is an object that can be sent to a worker for
execution. The task is sent to the worker using the messaging
mechanism where the `execute` function of the task will be
called in the thread context of the worker.

There are two kinds of tasks; regular tasks and disposable tasks.
The former are just sent to the worker for execution while the
latter are sent and subsequently disposed of, once the task has
been executed.

A disposable task can be sent to either one worker or to all
workers. In the latter case, the task will be deleted once it
has been executed by all workers.

A semaphore can be associated with a regular task. Once the task
has been executed by the worker, the semaphore will automatically
be posted. That way, it is trivial to send a task for execution
to a worker and wait until the task has been executed. For instance:

    Semaphore sem;
    MyTask task;

    pWorker->execute(&task, &sem);
    sem.wait();

    const MyResult& result = task.result();

The low level mechanism for posting and broadcasting messages will
be removed.
2017-04-24 14:52:54 +03:00
..
2017-04-23 18:54:18 +03:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:21:20 +02:00
2017-04-05 11:35:13 +03:00
2017-04-05 11:35:13 +03:00
2017-02-14 21:42:28 +02:00
2017-03-24 09:21:20 +02:00
2017-03-27 09:49:21 +02:00
2017-04-21 19:57:45 +03:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:21:20 +02:00
2017-03-24 11:11:15 +02:00
2017-03-24 09:21:20 +02:00
2017-03-13 10:45:55 +02:00
2017-02-20 11:07:44 +02:00
2017-04-20 13:51:16 +03:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:21:20 +02:00
2017-03-24 11:19:01 +02:00
2017-04-05 11:35:13 +03:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:21:20 +02:00
2017-03-24 09:42:38 +02:00
2017-03-24 09:45:42 +02:00
2017-03-03 15:30:25 +02:00
2017-03-24 09:51:56 +02:00
2017-04-23 18:54:18 +03:00
2017-04-18 14:53:12 +03:00
2017-03-24 10:58:19 +02:00
2017-03-24 11:11:15 +02:00
2017-04-05 11:35:13 +03:00
2017-04-24 14:52:54 +03:00