Skip to content

Commit

Permalink
Fixed: Windows build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Feb 20, 2024
1 parent a8164fc commit 63c1ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/gaia/mt/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ namespace gaia {
if GAIA_UNLIKELY (workerIdx >= m_workers.size())
return;

#if GAIA_PLATFORM_WINDOWS
auto& t = m_workers[i];
#if GAIA_PLATFORM_WINDOWS
auto& t = m_workers[workerIdx];
if (t.joinable())
t.join();
#else
Expand Down
2 changes: 1 addition & 1 deletion single_include/gaia.h
Original file line number Diff line number Diff line change
Expand Up @@ -14036,7 +14036,7 @@ namespace gaia {
return;

#if GAIA_PLATFORM_WINDOWS
auto& t = m_workers[i];
auto& t = m_workers[workerIdx];
if (t.joinable())
t.join();
#else
Expand Down

0 comments on commit 63c1ea3

Please sign in to comment.