aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-10 11:36:27 +0800
committercrupest <crupest@outlook.com>2021-06-10 11:36:27 +0800
commitbc59f70946f58a9df301d5c61d2bc0dbafaa74f5 (patch)
tree33fd432a4e4ba028a1540a5e74836a28ceafe16d
parentdf97d69a45ba4e50114458e2b5c4185460f2d9f3 (diff)
downloadlife-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.tar.gz
life-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.tar.bz2
life-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.zip
...
-rw-r--r--operating-system-experiment/Mutex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/operating-system-experiment/Mutex.cpp b/operating-system-experiment/Mutex.cpp
index b7d0cb6..4d360f1 100644
--- a/operating-system-experiment/Mutex.cpp
+++ b/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