enh(ScopedLockWithUnlock): make it more alike std::unique_lock (#4652)

This commit is contained in:
siren186
2024-08-30 04:03:33 +08:00
committed by GitHub
parent 6d2b26645a
commit aa8084c6a0
3 changed files with 25 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class Foundation_API NamedMutex: private NamedMutexImpl
{
public:
using ScopedLock = Poco::ScopedLock<NamedMutex>;
using ScopedLockWithUnlock = Poco::ScopedLockWithUnlock<NamedMutex>;
NamedMutex(const std::string& name);
/// creates the Mutex.