diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-10-09 11:27:26 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-10-09 14:51:44 +0000 |
commit | f76b3dd039818cc2b297fa2a11b60d9e055e6d8c (patch) | |
tree | e46d4174cd7f66edeb962031e59259b820eaa344 /vcl | |
parent | 3e23ee076ae6b46af617c0692998b22459a43dde (diff) |
Move SolarMutex down from tools to comphelper/ to make life easier.
Change-Id: I7dd21f30daa27e5de2848eb16aee9a610dd629d5
Reviewed-on: https://gerrit.libreoffice.org/19271
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/app/geninst.cxx | 7 | ||||
-rw-r--r-- | vcl/osx/salinst.cxx | 6 | ||||
-rw-r--r-- | vcl/win/source/app/salinst.cxx | 6 |
3 files changed, 8 insertions, 11 deletions
diff --git a/vcl/generic/app/geninst.cxx b/vcl/generic/app/geninst.cxx index ef7bec0ed0d9..d53ed30129a3 100644 --- a/vcl/generic/app/geninst.cxx +++ b/vcl/generic/app/geninst.cxx @@ -21,7 +21,7 @@ #include <stdlib.h> #include <osl/module.hxx> -#include <tools/solarmutex.hxx> +#include <comphelper/solarmutex.hxx> #include <vcl/opengl/OpenGLContext.hxx> #include "generic/geninst.h" @@ -32,12 +32,12 @@ SalYieldMutex::SalYieldMutex() { mnCount = 0; mnThreadId = 0; - ::tools::SolarMutex::SetSolarMutex( this ); + ::comphelper::SolarMutex::setSolarMutex( this ); } SalYieldMutex::~SalYieldMutex() { - ::tools::SolarMutex::SetSolarMutex( NULL ); + ::comphelper::SolarMutex::setSolarMutex( NULL ); } void SalYieldMutex::acquire() @@ -125,7 +125,6 @@ bool SalGenericInstance::CheckYieldMutex() SalGenericInstance::~SalGenericInstance() { - ::tools::SolarMutex::SetSolarMutex( 0 ); delete mpSalYieldMutex; } diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index bc9b2050777d..137c72f17da9 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -21,7 +21,7 @@ #include <stdio.h> -#include <tools/solarmutex.hxx> +#include <comphelper/solarmutex.hxx> #include "comphelper/lok.hxx" @@ -350,7 +350,7 @@ AquaSalInstance::AquaSalInstance() { mpSalYieldMutex = new SalYieldMutex; mpSalYieldMutex->acquire(); - ::tools::SolarMutex::SetSolarMutex( mpSalYieldMutex ); + ::comphelper::SolarMutex::setSolarMutex( mpSalYieldMutex ); maMainThread = osl::Thread::getCurrentIdentifier(); mbWaitingYield = false; maUserEventListMutex = osl_createMutex(); @@ -360,7 +360,7 @@ AquaSalInstance::AquaSalInstance() AquaSalInstance::~AquaSalInstance() { - ::tools::SolarMutex::SetSolarMutex( 0 ); + ::comphelper::SolarMutex::setSolarMutex( 0 ); mpSalYieldMutex->release(); delete mpSalYieldMutex; osl_destroyMutex( maUserEventListMutex ); diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx index 27af73fcaac3..4f3a28902a32 100644 --- a/vcl/win/source/app/salinst.cxx +++ b/vcl/win/source/app/salinst.cxx @@ -24,8 +24,6 @@ #include <osl/file.hxx> #include <comphelper/solarmutex.hxx> -#include <tools/solarmutex.hxx> - #include <vcl/apptypes.hxx> #include <vcl/opengl/OpenGLHelper.hxx> #include <vcl/opengl/OpenGLContext.hxx> @@ -580,12 +578,12 @@ WinSalInstance::WinSalInstance() mpSalWaitMutex = new osl::Mutex; mnYieldWaitCount = 0; mpSalYieldMutex->acquire(); - ::tools::SolarMutex::SetSolarMutex( mpSalYieldMutex ); + ::comphelper::SolarMutex::setSolarMutex( mpSalYieldMutex ); } WinSalInstance::~WinSalInstance() { - ::tools::SolarMutex::SetSolarMutex( 0 ); + ::comphelper::SolarMutex::setSolarMutex( 0 ); mpSalYieldMutex->release(); delete mpSalYieldMutex; delete mpSalWaitMutex; |