diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2006-12-18 15:26:40 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2006-12-18 15:26:40 (GMT) |
commit | 87db0f592b3ffee3043b4e701be8c8c0132e3520 (patch) | |
tree | 7776e905af1f99287ca9a13e12ff55986758bdc2 /backend/ev-document.h | |
parent | 67f80b85d70a6d577e36c9578b854003a7d910ca (diff) |
Use an specific lock for FontConfig. Hopefully it fixes some crashes
2006-12-18 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ev-document.[ch]: (ev_document_get_fc_mutex),
(ev_document_fc_mutex_lock), (ev_document_fc_mutex_unlock):
* pdf/ev-poppler.cc: (make_thumbnail_for_size):
* shell/ev-jobs.c: (ev_job_render_run), (ev_job_fonts_run):
* shell/ev-view.c: (draw_loading_text):
* shell/ev-window.c: (ev_window_cmd_file_properties):
Use an specific lock for FontConfig. Hopefully it fixes some crashes
related to using FontConfig from different threads.
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r-- | backend/ev-document.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h index 0da5fc7..828ca25 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -97,10 +97,17 @@ struct _EvDocumentIface GType ev_document_get_type (void); GQuark ev_document_error_quark (void); -GMutex *ev_document_get_doc_mutex (void); -void ev_document_doc_mutex_lock (void); + +/* Document mutex */ +GMutex *ev_document_get_doc_mutex (void); +void ev_document_doc_mutex_lock (void); void ev_document_doc_mutex_unlock (void); +/* FontConfig mutex */ +GMutex *ev_document_fc_doc_mutex (void); +void ev_document_fc_mutex_lock (void); +void ev_document_fc_mutex_unlock (void); + EvDocumentInfo *ev_document_get_info (EvDocument *document); gboolean ev_document_load (EvDocument *document, const char *uri, |