Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Oct 23, 2024
1 parent f53f1f8 commit e9b0751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/lib/thread_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class thread_pool final
// TODO: Is this still needed?
#if defined(BOOST_ASIO_HAS_IOCP)
// A hack needed for Windows to prevent deadlock during destruction, described here: https://github.com/chriskohlhoff/asio/issues/431
boost::asio::use_service<boost::asio::detail::win_iocp_io_context> (*thread_pool_m).stop ();
boost::asio::use_service<boost::asio::detail::win_iocp_io_context> (*thread_pool_impl).stop ();
#endif

lock.unlock ();
Expand Down

0 comments on commit e9b0751

Please sign in to comment.