This commit is contained in:
jeanlemotan
2024-07-02 18:13:47 +02:00
commit bbeaa887cd
173 changed files with 34365 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#include <cppcoro/detail/win32.hpp>
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
void cppcoro::detail::win32::safe_handle::close() noexcept
{
if (m_handle != nullptr && m_handle != INVALID_HANDLE_VALUE)
{
::CloseHandle(m_handle);
m_handle = nullptr;
}
}