comparison 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
comparison
equal deleted inserted replaced
5411:ca9cf4d46883 5412:1a351a141653
1489 } 1489 }
1490 1490
1491 ~ServerContextReference() 1491 ~ServerContextReference()
1492 { 1492 {
1493 boost::mutex::scoped_lock lock(mutex_); 1493 boost::mutex::scoped_lock lock(mutex_);
1494 refCount_++; 1494 refCount_--;
1495 cond_.notify_one(); 1495 cond_.notify_one();
1496 } 1496 }
1497 1497
1498 ServerContext& GetContext() 1498 ServerContext& GetContext()
1499 { 1499 {