Tizen Native API
|
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.
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. |
Function Documentation
Ecore_Job* ecore_job_add | ( | Ecore_Cb | func, |
const void * | data | ||
) |
Add a job to the event queue.
- Since :
- 2.3.1
- Remarks:
- Once the job has been executed, the job handle is invalid.
- Parameters:
-
[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.
- Returns:
- The handle of the job.
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.
- Since :
- 2.3.1
- Parameters:
-
[in] job Handle of the job to delete.
- Returns:
- The data pointer that was to be passed to the job.