diff options
Diffstat (limited to 'operating-system-experiment/Thread.cpp')
-rw-r--r-- | operating-system-experiment/Thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/operating-system-experiment/Thread.cpp b/operating-system-experiment/Thread.cpp index 657c69f..0bc4c18 100644 --- a/operating-system-experiment/Thread.cpp +++ b/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
|