Hacker News new | ask | show | jobs
by beached_whale 3160 days ago
You can use it for locks where std::lock_guard isn’t what you need, put the mutex.unlock in the scope_guard