summaryrefslogtreecommitdiffstats
path: root/include/osl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-01-29 09:57:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-30 10:10:41 +0100
commitc42f60e2b9a521005e1263e781c878e2598b44df (patch)
tree1716aaffc464c288eed434478a83afda45b5a676 /include/osl
parentloplugin:finalclasses in sw (diff)
downloadcore-c42f60e2b9a521005e1263e781c878e2598b44df.tar.gz
core-c42f60e2b9a521005e1263e781c878e2598b44df.zip
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/mutex.hxx3
1 files changed, 3 insertions, 0 deletions
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