diff options
author | crupest <crupest@outlook.com> | 2021-06-10 11:36:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-10 11:36:27 +0800 |
commit | bc59f70946f58a9df301d5c61d2bc0dbafaa74f5 (patch) | |
tree | 33fd432a4e4ba028a1540a5e74836a28ceafe16d /operating-system-experiment | |
parent | df97d69a45ba4e50114458e2b5c4185460f2d9f3 (diff) | |
download | life-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.tar.gz life-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.tar.bz2 life-bc59f70946f58a9df301d5c61d2bc0dbafaa74f5.zip |
...
Diffstat (limited to 'operating-system-experiment')
-rw-r--r-- | operating-system-experiment/Mutex.cpp | 2 |
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 |