lokdocview: Use a thread pool for most LOK calls

Desktop / LibreOffice - Pranav Kant [gnome.org] - 28 July 2015 08:04 UTC

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.

a433ea9 lokdocview: Use a thread pool for most LOK calls
include/LibreOfficeKit/LibreOfficeKitGtk.h | 4 +-
libreofficekit/source/gtk/lokdocview.cxx | 327 +++++++++++++++++++++-------
2 files changed, 253 insertions(+), 78 deletions(-)

Upstream: cgit.freedesktop.org


  • Share