Cairo-Dock 2.4.0~1
_CairoDockTask Struct Reference

Definition of a periodic and asynchronous Task. More...

Data Fields

gint iSidTimer
 ID of the timer of the Task.
gint iSidTimerUpdate
 ID of the timer to check the end of the thread.
gint iThreadIsRunning
 Atomic value, set to 1 when the thread is running.
CairoDockGetDataAsyncFunc get_data
 function carrying out the heavy job.
CairoDockUpdateSyncFunc update
 function carrying out the update of the dock. Returns TRUE to continue, FALSE to stop.
guint iPeriod
 interval of time in seconds, 0 to run the Task once.
CairoDockFrequencyState iFrequencyState
 state of the frequency of the Task.
gpointer pSharedMemory
 structure passed as parameter of the 'get_data' and 'update' functions. Must not be accessed outside of these 2 functions !
GTimer * pClock
 timer to get the accurate amount of time since last update.
double fElapsedTime
 time elapsed since last update.
GFreeFunc free_data
 function called when the task is destroyed to free the shared memory (optionnal).
gboolean bDiscard
 TRUE when the task has been discarded.

Detailed Description

Definition of a periodic and asynchronous Task.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines