aboutsummaryrefslogtreecommitdiff
path: root/works/life/operating-system-experiment/Mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'works/life/operating-system-experiment/Mutex.cpp')
-rw-r--r--works/life/operating-system-experiment/Mutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/works/life/operating-system-experiment/Mutex.cpp b/works/life/operating-system-experiment/Mutex.cpp
index 4d360f1..8acfdc5 100644
--- a/works/life/operating-system-experiment/Mutex.cpp
+++ b/works/life/operating-system-experiment/Mutex.cpp
@@ -86,6 +86,7 @@ void Mutex::Destroy() {
if (handle_ != nullptr) {
auto c = CloseHandle(handle_);
assert(c);
+ handle_ = nullptr;
}
#else
if (mutex_ != nullptr) {