![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A task. More...
#include <gp_task.h>

Data Fields | |
| gp_dlist_head | head |
| A pointers to the linked list. | |
| unsigned int | prio:3 |
| A task priority. | |
| unsigned int | queued:1 |
| Set if task is queued in the queue. | |
| char * | id |
| Human readable task id. | |
| int(* | callback )(gp_task *self) |
| The task callback. | |
| void * | priv |
| A private pointer to be used by the user of the API. | |
A task.
Task is a callback with some more information such as priority. Tasks are queued in the gp_task_queue and executed sequentially accordingly to the priorities.
| int(* gp_task::callback) (gp_task *self) |