aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--works/life/operating-system-experiment/Mutex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/works/life/operating-system-experiment/Mutex.cpp b/works/life/operating-system-experiment/Mutex.cpp
index b7d0cb6..4d360f1 100644
--- a/works/life/operating-system-experiment/Mutex.cpp
+++ b/works/life/operating-system-experiment/Mutex.cpp
@@ -90,7 +90,7 @@ void Mutex::Destroy() {
#else
if (mutex_ != nullptr) {
auto c = pthread_mutex_destroy(mutex_.get());
- assert(c);
+ assert(c == 0);
mutex_ = nullptr;
}
#endif