diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-10-08 19:47:30 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-10-08 19:47:30 +0200 |
| commit | d2a09fd84fa75368c820eb443854dcf5f667f970 (patch) | |
| tree | eb60566d0bff6ce3f5c7c693125d47d0149a593c | |
| parent | b3bb14a0ef375809cd00ded10491642fd5bb4a35 (diff) | |
I'm not sure if this is actually wrong, but it seems odd.
I think possibly only the first call to ::instance() would be locked.
| -rw-r--r-- | src/lib/change_signaller.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/change_signaller.h b/src/lib/change_signaller.h index 1d7d482df..cda366076 100644 --- a/src/lib/change_signaller.h +++ b/src/lib/change_signaller.h @@ -101,7 +101,7 @@ public: static ChangeSignalDespatcher* instance() { static boost::mutex _instance_mutex; - static boost::mutex::scoped_lock lm(_instance_mutex); + boost::mutex::scoped_lock lm(_instance_mutex); static ChangeSignalDespatcher<T, P>* _instance; if (!_instance) { _instance = new ChangeSignalDespatcher<T, P>(); |
