rtl: support start/stop threads around pre-init
commit271a663d2f098f3f665cab6da2e13b265a7eab93
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>
Mon, 25 Dec 2017 20:02:41 +0000 (25 15:02 -0500)
committerAshod Nakashian <ashnakash@gmail.com>
Thu, 28 Dec 2017 18:10:01 +0000 (28 19:10 +0100)
tree568e9d601da6fbf6612200aa9f951c1fd64495dc
parent0217031a98508731f15df9d361a6e5b584db5716
rtl: support start/stop threads around pre-init

This is necessary to avoid having extra threads
while forking. After forking, the second stage
of pre-init is started and so we start the stopped
rtl threads.

The comment for rtl_alloc_preInit_phase_t has
more details.

Change-Id: I1a3f7be74d4b04d0b2fc4a72b02124c2faa3c047
Reviewed-on: https://gerrit.libreoffice.org/47060
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
desktop/source/lib/init.cxx
include/rtl/alloc.h
sal/inc/rtllifecycle.h
sal/qa/rtl/alloc/rtl_alloc.cxx
sal/rtl/alloc_cache.cxx
sal/rtl/strimp.cxx