Tizen Native API
|
Functions | |
Ecore_Job * | ecore_job_add (Ecore_Cb func, const void *data) |
Add a job to the event queue. | |
void * | ecore_job_del (Ecore_Job *job) |
Delete a queued job that has not yet been executed. | |
Typedefs | |
typedef struct _Ecore_Job | Ecore_Job |
A job handle. |
You can queue jobs that are to be done by the main loop when the current event is dealt with.
Jobs are processed by the main loop in a manner which is similar to events. They are also executed in the order in which they are added.
A good use for them is when you don't want to execute an action immediately, but want to give the control back to the main loop so that it calls your job callback when jobs start being processed (and if there are other jobs added before yours, they are processed first). This also gives a chance to other actions in your program to cancel the job before it is started.
Ecore_Job* ecore_job_add | ( | Ecore_Cb | func, |
const void * | data | ||
) |
Add a job to the event queue.
[in] | func | The function to call when the job gets handled. |
[in] | data | Data pointer to be passed to the job function when the job is handled. |
NULL
is returned if the job could not be added to the queue. void* ecore_job_del | ( | Ecore_Job * | job | ) |
Delete a queued job that has not yet been executed.
[in] | job | Handle of the job to delete. |