summaryrefslogtreecommitdiff
path: root/libview/ev-job-scheduler.h
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 15:47:04 +0100
committerinfirit <[email protected]>2014-12-09 23:02:28 +0100
commit5abb88d4376fdb478455a6acb9a8d322d51da5ee (patch)
treec79db8ef015be0ae4059271bc5a3f9a3bf1c45a4 /libview/ev-job-scheduler.h
parente9f1cf80bff9c730ccb6d76008ae6c5d0d0c8bcf (diff)
downloadatril-5abb88d4376fdb478455a6acb9a8d322d51da5ee.tar.bz2
atril-5abb88d4376fdb478455a6acb9a8d322d51da5ee.tar.xz
libview: add a method to get the job currently running in the worker thread
When a job is cancelled while it's running, the cancelled signal might be emitted before the job finishes, and since the finished signal is not emitted for cancelled jobs, it's not possible to know when the job has finished. With this method we can see whether the job is still running and wait until it finishes. Taken from evince commit: 23e76eac47c60ab885edcdb6a337ee7587afa7e8 From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'libview/ev-job-scheduler.h')
-rw-r--r--libview/ev-job-scheduler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libview/ev-job-scheduler.h b/libview/ev-job-scheduler.h
index 68e9f59b..fae80a85 100644
--- a/libview/ev-job-scheduler.h
+++ b/libview/ev-job-scheduler.h
@@ -38,10 +38,11 @@ typedef enum {
EV_JOB_N_PRIORITIES
} EvJobPriority;
-void ev_job_scheduler_push_job (EvJob *job,
- EvJobPriority priority);
-void ev_job_scheduler_update_job (EvJob *job,
- EvJobPriority priority);
+void ev_job_scheduler_push_job (EvJob *job,
+ EvJobPriority priority);
+void ev_job_scheduler_update_job (EvJob *job,
+ EvJobPriority priority);
+EvJob *ev_job_scheduler_get_running_thread_job (void);
G_END_DECLS