Ecore Jobs
You can queue jobs that are to be done by the main loop when the current event is dealt with. More...Functions | |
| EAPI Ecore_Job * | ecore_job_add (void(*func)(void *data), const void *data) |
| Add a job to the event queue. | |
| EAPI void * | ecore_job_del (Ecore_Job *job) |
| Delete a queued job that has not yet been executed. | |
Detailed Description
You can queue jobs that are to be done by the main loop when the current event is dealt with.
Function Documentation
| EAPI Ecore_Job* ecore_job_add | ( | void(*)(void *data) | func, | |
| const void * | data | |||
| ) |
Add a job to the event queue.
- Parameters:
-
func The function to call when the job gets handled. data Data pointer to be passed to the job function when the job is handled.
- Returns:
- The handle of the job.
NULLis returned if the job could not be added to the queue.
- Note:
- Once the job has been executed, the job handle is invalid.
References ecore_event_add().
| EAPI void* ecore_job_del | ( | Ecore_Job * | job | ) |
Delete a queued job that has not yet been executed.
- Parameters:
-
job Handle of the job to delete.
- Returns:
- The data pointer that was to be passed to the job.
References ecore_event_del().