diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-29 09:57:41 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-30 10:10:41 +0100 |
commit | c42f60e2b9a521005e1263e781c878e2598b44df (patch) | |
tree | 1716aaffc464c288eed434478a83afda45b5a676 /include | |
parent | 5346b2556348477dcec371913d5924c6badfa2c7 (diff) |
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')
-rw-r--r-- | include/osl/mutex.hxx | 3 |
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 |