Kaydet (Commit) fca62934 authored tarafından Michael Stahl's avatar Michael Stahl

basic: use SolarMutex to lock SfxLibraryContainer

Originally this used both SolarMutex and an own mutex, then a deadlock
was resolved in 2fe6a4a3 by not locking
SolarMutex.

Since the class will call event listeners without dropping the mutex
e.g. in insertNoCheck(), using the SolarMutex appears better anyway.

With this, installing a BASIC extension no longer triggers SolarMutex
asserts in SfxBroadcaster.

Change-Id: Ib9a2ee491ef53b1a53855af0fc22e863c5e7cb91
üst 26b79470
......@@ -417,13 +417,13 @@ void SfxLibraryContainer::checkDisposed() const
void SfxLibraryContainer::enterMethod()
{
maMutex.acquire();
Application::GetSolarMutex().acquire();
checkDisposed();
}
void SfxLibraryContainer::leaveMethod()
{
maMutex.release();
Application::GetSolarMutex().release();
}
BasicManager* SfxLibraryContainer::getBasicManager()
......
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