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 | bfd0f33af41ac2d5f26d597eac80070911c945a5 (patch) | |
tree | 3b0c823160797088e8eb9c88a8e3503e407ab160 /works/life | |
parent | f532667d936500f50447d63333544f603ec06137 (diff) | |
download | crupest-bfd0f33af41ac2d5f26d597eac80070911c945a5.tar.gz crupest-bfd0f33af41ac2d5f26d597eac80070911c945a5.tar.bz2 crupest-bfd0f33af41ac2d5f26d597eac80070911c945a5.zip |
import(life): ...
Diffstat (limited to 'works/life')
-rw-r--r-- | works/life/operating-system-experiment/Mutex.cpp | 2 |
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 |