Kaydet (Commit) a433ea9f authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) Miklos Vajna

lokdocview: Use a thread pool for most LOK calls

This is a thread pool with just single thread because LOK is
single threaded; using multiple threads in this case would be
useless.

Primary reason we are using a thread pool here is to avoid the
overhead in spawning a new thread for each LOK call.

Change-Id: Ibbfdb7cb0a8ef9f07bcc659e65ce8997716aa245
üst cb94e003
...@@ -81,8 +81,8 @@ gboolean lok_doc_view_get_edit (LOKDocView* ...@@ -81,8 +81,8 @@ gboolean lok_doc_view_get_edit (LOKDocView*
/// Posts the .uno: command to the LibreOfficeKit. /// Posts the .uno: command to the LibreOfficeKit.
void lok_doc_view_post_command (LOKDocView* pDocView, void lok_doc_view_post_command (LOKDocView* pDocView,
const char* pCommand, const gchar* pCommand,
const char* pArguments); const gchar* pArguments);
float lok_doc_view_pixel_to_twip (LOKDocView* pDocView, float lok_doc_view_pixel_to_twip (LOKDocView* pDocView,
float fInput); float fInput);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment