`step' is the current processing step. Several processing steps can be recorded during the task creation. It is an index in the step array, which determines which call will be made at the next scheduling tick.
`seqno' is maintained by the scheduler and counts the amount of calls made for the given step. It is reset each time the user changes the processing step.
`stepvec' is the set of steps we have to run (normally in sequence).
Data Fields | |
guint | magic |
Magic number. | |
guint32 | flags |
Operating flags. | |
gchar * | name |
Task name. | |
gint | step |
Current processing step. | |
gint | seqno |
Number of calls at same step. | |
bgstep_cb_t * | stepvec |
Set of steps to run in sequence. | |
gint | stepcnt |
Amount of steps in the `stepvec' array. | |
gpointer | ucontext |
User context. | |
time_t | ctime |
Creation time. | |
gint | wtime |
Wall-clock run time sofar, in ms. | |
bgclean_cb_t | uctx_free |
Free routine for context. | |
bgdone_cb_t | done_cb |
Called when done. | |
gpointer | done_arg |
"done" callback argument | |
gint | exitcode |
Final "exit" code. | |
bgsig_t | signal |
Last signal delivered. | |
GSList * | signals |
List of signals pending delivery. | |
jmp_buf | env |
Only valid when TASK_F_RUNNING. | |
tm_t | start |
Start time of scheduling "tick". | |
gint | ticks |
Scheduling ticks for time slice. | |
gint | ticks_used |
Amount of ticks used by processing step. | |
gint | prev_ticks |
Ticks used when measuring `elapsed' below. | |
gint | elapsed |
Elapsed during last run, in usec. | |
gdouble | tick_cost |
Time in ms. | |
bgsig_cb_t | sigh [BG_SIG_COUNT] |
Signal handlers. | |
GSList * | wq |
Work queue (daemon task only). | |
bgstart_cb_t | start_cb |
Called when starting working on an item. | |
bgend_cb_t | end_cb |
Called when finished working on an item. | |
bgclean_cb_t | item_free |
Free routine for work queue items. | |
bgnotify_cb_t | notify |
Start/Stop notification (optional). |
|
Creation time.
|
|
"done" callback argument
|
|
Called when done.
|
|
Elapsed during last run, in usec.
|
|
Called when finished working on an item.
|
|
Only valid when TASK_F_RUNNING.
|
|
Final "exit" code.
|
|
Operating flags.
|
|
Free routine for work queue items.
|
|
Magic number.
|
|
Task name.
|
|
Start/Stop notification (optional).
|
|
Ticks used when measuring `elapsed' below.
|
|
Number of calls at same step.
|
|
Signal handlers.
|
|
Last signal delivered.
|
|
List of signals pending delivery.
|
|
Start time of scheduling "tick".
|
|
Called when starting working on an item.
|
|
Current processing step.
|
|
Amount of steps in the `stepvec' array.
|
|
Set of steps to run in sequence.
|
|
Time in ms. spent by each tick |
|
Scheduling ticks for time slice.
|
|
Amount of ticks used by processing step.
|
|
User context.
|
|
Free routine for context.
|
|
Work queue (daemon task only).
|
|
Wall-clock run time sofar, in ms.
|