summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/console/PresenterTimer.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/console/PresenterTimer.cxx b/sd/source/console/PresenterTimer.cxx
index 232c82bafa27..cffb2dc738fc 100644
--- a/sd/source/console/PresenterTimer.cxx
+++ b/sd/source/console/PresenterTimer.cxx
@@ -96,7 +96,11 @@ public:
static void NotifyTermination();
#if !defined NDEBUG
- static bool HasInstance() { return mpInstance != nullptr; }
+ static bool HasInstance()
+ {
+ std::scoped_lock aGuard (maInstanceMutex);
+ return mpInstance != nullptr;
+ }
#endif
private: