Skip to content

Commit 726cfe2

Browse files
committed
Add documentation comment to thread_start_routine in win32.h
- Included a comment in the `thread_start_routine` function to clarify that the API function is called directly and that any CRT-specific processing occurs in `DllMain DLL_THREAD_ATTACH`. - This enhancement improves code readability and understanding of the threading implementation.
1 parent 10b0ee1 commit 726cfe2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/fast_io_hosted/threads/thread/nt.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ class nt_thread_start_routine_tuple_allocate_guard
4545
template <typename Tuple, ::std::size_t... Is>
4646
inline constexpr ::std::uint_least32_t FAST_IO_WINSTDCALL thread_start_routine(void *args) noexcept
4747
{
48+
/*
49+
* Just call the API function. Any CRT specific processing is done in
50+
* DllMain DLL_THREAD_ATTACH
51+
*/
52+
4853
[[maybe_unused]] ::fast_io::win32::nt::details::nt_thread_start_routine_tuple_allocate_guard<Tuple> _(args);
4954

5055
#ifdef FAST_IO_CPP_EXCEPTIONS

include/fast_io_hosted/threads/thread/win32.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ class win32_thread_start_routine_tuple_allocate_guard
4444
template <typename Tuple, ::std::size_t... Is>
4545
inline constexpr ::std::uint_least32_t FAST_IO_WINSTDCALL thread_start_routine(void *args) noexcept
4646
{
47+
/*
48+
* Just call the API function. Any CRT specific processing is done in
49+
* DllMain DLL_THREAD_ATTACH
50+
*/
51+
4752
[[maybe_unused]] ::fast_io::win32::details::win32_thread_start_routine_tuple_allocate_guard<Tuple> _(args);
4853

4954
#ifdef FAST_IO_CPP_EXCEPTIONS

0 commit comments

Comments
 (0)