We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5af4ec commit 035d73bCopy full SHA for 035d73b
1 file changed
src/ESPressio_ThreadSafe.hpp
@@ -55,7 +55,8 @@ namespace ESPressio {
55
}
56
57
~Mutex() {
58
- _mutex.unlock();
+ // Check if the mutex is locked....
59
+ if (!_mutex.try_lock()) { _mutex.unlock() };
60
61
// Methods
62
T Get() {
0 commit comments