Tizen Native API
|
ecore_job - Queuing tasks
This example shows how an Ecore_Job can be added, how it can be deleted, and that they always execute in the added order.
First, 2 callback functions are declared, one that prints strings passed to it in the data
pointer, and another one that quits the main loop. In the main
function, 3 jobs are added using the first callback, and another one is added using the second one.
Then the second added job is deleted just to demonstrate the usage of ecore_job_del(), and the main loop is finally started. Run this example to see that job1
, job3
and job_quit
are ran, in this order.