]> www.fi.muni.cz Git - evince.git/commit
libview: add a method to get the job currently running in the worker thread
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 4 Dec 2010 14:41:35 +0000 (15:41 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 4 Dec 2010 14:56:50 +0000 (15:56 +0100)
commit23e76eac47c60ab885edcdb6a337ee7587afa7e8
treee649474de0fa6eb1a8d3600869e6413774ecf492
parent019bed4ac336d44dc384e602478adf6f935c1097
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.
libview/ev-job-scheduler.c
libview/ev-job-scheduler.h