projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3bb14a
)
I'm not sure if this is actually wrong, but it seems odd.
author
Carl Hetherington
<cth@carlh.net>
Tue, 8 Oct 2024 17:47:30 +0000
(19:47 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 8 Oct 2024 17:47:30 +0000
(19:47 +0200)
I think possibly only the first call to ::instance() would be locked.
src/lib/change_signaller.h
patch
|
blob
|
history
diff --git
a/src/lib/change_signaller.h
b/src/lib/change_signaller.h
index 1d7d482df2539d8c989609e4cf162a323ceb7bfd..cda36607693de3fdfff6536ab313ceb65f29c34a 100644
(file)
--- 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>();