diff OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 5412:1a351a141653

ServerContextLock -> ServerContextReference to allow multiple plugins to use it at the same time
author Alain Mazy <am@osimis.io>
date Wed, 08 Nov 2023 08:55:42 +0100
parents ca9cf4d46883
children 59e3b6f8c5be
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Wed Nov 08 08:34:47 2023 +0100
+++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Wed Nov 08 08:55:42 2023 +0100
@@ -1491,7 +1491,7 @@
       ~ServerContextReference()
       {
         boost::mutex::scoped_lock lock(mutex_);
-        refCount_++;
+        refCount_--;
         cond_.notify_one();
       }