diff options
author | Joachim Lingner <jl@openoffice.org> | 2002-06-05 12:21:38 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2002-06-05 12:21:38 +0000 |
commit | 2e944ec75b11b96aac0ae6fc70ac2b583440daf2 (patch) | |
tree | a87c6344275a8a1910061b459ff0dd6b38032e15 /extensions/source/ole/ole2uno.cxx | |
parent | *** empty log message *** (diff) | |
download | core-2e944ec75b11b96aac0ae6fc70ac2b583440daf2.tar.gz core-2e944ec75b11b96aac0ae6fc70ac2b583440daf2.zip |
#99049# ActiveX from StarBasic
Diffstat (limited to 'extensions/source/ole/ole2uno.cxx')
-rw-r--r-- | extensions/source/ole/ole2uno.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/extensions/source/ole/ole2uno.cxx b/extensions/source/ole/ole2uno.cxx new file mode 100644 index 000000000000..7f7ebda9b196 --- /dev/null +++ b/extensions/source/ole/ole2uno.cxx @@ -0,0 +1,25 @@ + +#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; +} + +} |