Files
libreoffice/extensions/source/ole/ole2uno.cxx

26 lines
365 B
C++
Raw Normal View History

2002-06-05 12:21:38 +00:00
#include <osl/mutex.hxx>
#include "ole2uno.hxx"
using namespace osl;
namespace ole_adapter
{
Mutex* getBridgeMutex()
{
static Mutex* pMutex= NULL;
if( ! pMutex)
{
MutexGuard guard( Mutex::getGlobalMutex() );
if( !pMutex)
{
static Mutex aMutex;
pMutex= &aMutex;
}
}
return pMutex;
}
}