Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Assuming that there is no other way to accomplish this, how could it work
to allow multiple child widgets to "own" the SolarMutex simultaneously? We
just need one of those threads to trigger an update to something like a
cache, and one of the other threads is likely to crash because of a stale
pointer.

Unless you are talking about passing some kind of permission down to the
child threads, which says "this thread is allowed to also take the
SolarMutex, even though it is already locked", which means we'd need
another counter, and then how would that interact with SolarMutexReleaser.

Possibly another way here is to make the parts of the child threads that
currently need the SolarMutex, to get their own mutex, preferably a
reader/writer mutex, so that multiple of them can run in parallel.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.