コード例 #1
0
ファイル: iptc.c プロジェクト: Limsik/e17
static void
_job_next(void)
{
   char buf[PATH_MAX];

   if(running)
     return;

   if(!l_jobs)
     return;

   running = 1;
   Enlil_IPTC_Job *job = eina_list_data_get(l_jobs);
   l_jobs = eina_list_remove(l_jobs, job);
   job_current = job;

   snprintf(buf, PATH_MAX, "%s/%s", enlil_photo_path_get(job_current->photo),
            enlil_photo_file_name_get(job_current->photo));

   Enlil_IPTC_Thread_Data *data = calloc(1, sizeof(Enlil_IPTC_Thread_Data));
   data->file = eina_stringshare_add(buf);

   ecore_thread_run(_iptc_thread, _end_cb, NULL, data);

   running = 1;
}
コード例 #2
0
void EflResources::init()
{
    window__ = EflPageManager::getWindow();
    ecore_thread_run( initCb__
                    , nullptr
                    , nullptr
                    , this );
}