GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_task Struct Reference

A task. More...

#include <gp_task.h>

Collaboration diagram for gp_task:
Collaboration graph
[legend]

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.
 

Detailed Description

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.

Definition at line 48 of file gp_task.h.

Field Documentation

◆ callback

int(* gp_task::callback) (gp_task *self)

The task callback.

Parameters
selfA task structure.
Returns
If zero is returned the callback is finished i.e. removed from the queue and the queued flag is cleared, otherwise it's reschedulled.

Definition at line 65 of file gp_task.h.


The documentation for this struct was generated from the following file: