use SolarMutexGuard to guard the SolarMutex
This commit is contained in:
@@ -81,7 +81,7 @@ namespace basprov
|
||||
|
||||
::rtl::OUString BasicLibraryNodeImpl::getName( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return m_sLibName;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace basprov
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > BasicLibraryNodeImpl::getChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > aChildNodes;
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace basprov
|
||||
|
||||
sal_Bool BasicLibraryNodeImpl::hasChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
sal_Bool bReturn = sal_False;
|
||||
if ( m_xLibrary.is() )
|
||||
@@ -137,7 +137,7 @@ namespace basprov
|
||||
|
||||
sal_Int16 BasicLibraryNodeImpl::getType( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return browse::BrowseNodeTypes::CONTAINER;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace basprov
|
||||
|
||||
::rtl::OUString BasicMethodNodeImpl::getName( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
::rtl::OUString sMethodName;
|
||||
if ( m_pMethod )
|
||||
@@ -143,7 +143,7 @@ namespace basprov
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > BasicMethodNodeImpl::getChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return Sequence< Reference< browse::XBrowseNode > >();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ namespace basprov
|
||||
|
||||
sal_Bool BasicMethodNodeImpl::hasChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return sal_False;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ namespace basprov
|
||||
|
||||
sal_Int16 BasicMethodNodeImpl::getType( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return browse::BrowseNodeTypes::SCRIPT;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace basprov
|
||||
|
||||
::rtl::OUString BasicModuleNodeImpl::getName( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
::rtl::OUString sModuleName;
|
||||
if ( m_pModule )
|
||||
@@ -88,7 +88,7 @@ namespace basprov
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > BasicModuleNodeImpl::getChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > aChildNodes;
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace basprov
|
||||
|
||||
sal_Bool BasicModuleNodeImpl::hasChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
sal_Bool bReturn = sal_False;
|
||||
if ( m_pModule )
|
||||
@@ -142,7 +142,7 @@ namespace basprov
|
||||
|
||||
sal_Int16 BasicModuleNodeImpl::getType( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return browse::BrowseNodeTypes::CONTAINER;
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ namespace basprov
|
||||
{
|
||||
// TODO
|
||||
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
if ( aArguments.getLength() != 1 )
|
||||
{
|
||||
@@ -333,7 +333,7 @@ namespace basprov
|
||||
{
|
||||
// TODO
|
||||
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
Reference< provider::XScript > xScript;
|
||||
Reference< lang::XMultiComponentFactory > xMcFac ( m_xContext->getServiceManager() );
|
||||
@@ -467,7 +467,7 @@ namespace basprov
|
||||
{
|
||||
// TODO
|
||||
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return ::rtl::OUString::createFromAscii( "Basic" );
|
||||
}
|
||||
@@ -476,7 +476,7 @@ namespace basprov
|
||||
|
||||
Sequence< Reference< browse::XBrowseNode > > BasicProviderImpl::getChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
Reference< script::XLibraryContainer > xLibContainer;
|
||||
BasicManager* pBasicManager = NULL;
|
||||
@@ -534,7 +534,7 @@ namespace basprov
|
||||
|
||||
sal_Bool BasicProviderImpl::hasChildNodes( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
sal_Bool bReturn = sal_False;
|
||||
Reference< script::XLibraryContainer > xLibContainer;
|
||||
@@ -556,7 +556,7 @@ namespace basprov
|
||||
|
||||
sal_Int16 BasicProviderImpl::getType( ) throw (RuntimeException)
|
||||
{
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
return browse::BrowseNodeTypes::CONTAINER;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace basprov
|
||||
// TODO: throw CannotConvertException
|
||||
// TODO: check length of aOutParamIndex, aOutParam
|
||||
|
||||
::vos::OGuard aGuard( Application::GetSolarMutex() );
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
Any aReturn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user