From c42f60e2b9a521005e1263e781c878e2598b44df Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 29 Jan 2021 09:57:41 +0300 Subject: Simplify osl_getGlobalMutex to use function-local static Change-Id: I36df8be817d0f0cb75efa00b0b523f379f67d1d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110126 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/osl/mutex.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/osl/mutex.hxx b/include/osl/mutex.hxx index f984f035ca40..84955b681143 100644 --- a/include/osl/mutex.hxx +++ b/include/osl/mutex.hxx @@ -89,6 +89,9 @@ namespace osl private: oslMutex mutex; + // access to the oslMutex + friend oslMutex* SAL_CALL ::osl_getGlobalMutex(); + /** The underlying oslMutex has no reference count. Since the underlying oslMutex is not a reference counted object, copy -- cgit