Lely core libraries
2.2.5
|
This header file is part of the event library; it contains the abstract task executor interface. More...
Go to the source code of this file.
Data Structures | |
struct | ev_exec_vtbl |
Functions | |
void | ev_exec_on_task_init (ev_exec_t *exec) |
Indicates to the specified executor that a task will be submitted for execution in the future. More... | |
void | ev_exec_on_task_fini (ev_exec_t *exec) |
Undoes the effect of a previous call to ev_exec_on_task_init(). | |
int | ev_exec_dispatch (ev_exec_t *exec, struct ev_task *task) |
Submits *task to *exec for execution. More... | |
void | ev_exec_post (ev_exec_t *exec, struct ev_task *task) |
Submits *task to *exec for execution. More... | |
void | ev_exec_defer (ev_exec_t *exec, struct ev_task *task) |
Submits *task to *exec for execution. More... | |
size_t | ev_exec_abort (ev_exec_t *exec, struct ev_task *task) |
Aborts the specified task submitted to *exec, if it has not yet begun executing, or all pending tasks if task is NULL. More... | |
void | ev_exec_run (ev_exec_t *exec, struct ev_task *task) |
Invokes the task function in *task as if the task is being executed by *exec. More... | |
This header file is part of the event library; it contains the abstract task executor interface.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file exec.h.
|
inline |
Submits *task to *exec for execution.
The task function is invoked at most once. The executor MAY block pending the completion of the task. This typically happens when this function is invoked from the execution context of *exec (i.e., by a task currently being executed).
Submits *task to *exec for execution.
The task function is invoked at most once. The executor SHALL NOT block pending the completion of the task, but MAY begin executing the task before this function returns.
Submits *task to *exec for execution.
The task function is invoked at most once. The executor SHALL NOT block pending the completion of the task, and, if invoked from a running task, SHALL NOT begin executing the task before the current task completes. This function is typically used to indicate that* *task is a continuation of the current call context.
Invokes the task function in *task as if the task is being executed by *exec.
This function typically sets up an execution context in which ev_exec_dispatch() and ev_exec_defer() behave differently than if the task function is invoked directly.