aboutsummaryrefslogtreecommitdiff
path: root/works/life/operating-system-experiment/Thread.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-11 11:02:41 +0800
committercrupest <crupest@outlook.com>2021-06-11 11:02:41 +0800
commitfabd9692c49bad9f4f2858315f2a16501ad45d21 (patch)
tree61c9db7b74405a9155bb4bd568183d061168bf0d /works/life/operating-system-experiment/Thread.cpp
parent0380cd595ee05773f78751aa7f2952b6ea105f7c (diff)
downloadcrupest-fabd9692c49bad9f4f2858315f2a16501ad45d21.tar.gz
crupest-fabd9692c49bad9f4f2858315f2a16501ad45d21.tar.bz2
crupest-fabd9692c49bad9f4f2858315f2a16501ad45d21.zip
import(life): ...
Diffstat (limited to 'works/life/operating-system-experiment/Thread.cpp')
-rw-r--r--works/life/operating-system-experiment/Thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/works/life/operating-system-experiment/Thread.cpp b/works/life/operating-system-experiment/Thread.cpp
index 657c69f..0bc4c18 100644
--- a/works/life/operating-system-experiment/Thread.cpp
+++ b/works/life/operating-system-experiment/Thread.cpp
@@ -113,7 +113,8 @@ void Thread::Destroy() noexcept {
#ifdef CRU_WINDOWS
thread_id_ = 0;
if (thread_handle_ != nullptr) {
- CloseHandle(thread_handle_);
+ auto c = CloseHandle(thread_handle_);
+ assert(c);
thread_handle_ = nullptr;
}
#else