![]() |
v0.4.1
Fast, portable C library for geometry input/output
|
Defines an interface through which a task can be controlled. More...
Data Fields | |
void * | cookie |
Optional opaque pointer on a user task object, passed as first argument to hook functions. More... | |
bool(* | func_is_stop_requested )(void *cookie) |
Optional function that says if the currently running task must stop. More... | |
void(* | func_handle_progress )(void *cookie, intmax_t value, intmax_t max_value) |
Optional function that is called anytime some new progress was done. More... | |
Defines an interface through which a task can be controlled.
void* gmio_task_iface::cookie |
Optional opaque pointer on a user task object, passed as first argument to hook functions.
bool(* gmio_task_iface::func_is_stop_requested)(void *cookie) |
Optional function that says if the currently running task must stop.
If true
is returned then the current task should abort as soon as possible, otherwise it can continue execution
void(* gmio_task_iface::func_handle_progress)(void *cookie, intmax_t value, intmax_t max_value) |
Optional function that is called anytime some new progress was done.
cookie | The cookie set inside the gmio_task_iface object |
value | Current value of the task progress (<= max_value ) |
max_value | Maximum value of the task progress |
Fougue © 2017 | Last Update: Fri Apr 14 2017 |