--- libs/fiber/src/numa/windows/pin_thread.cpp +++ libs/fiber/src/numa/windows/pin_thread.cpp @@ -23,7 +23,7 @@ BOOST_FIBERS_DECL void pin_thread( std::uint32_t cpuid) { - pin_thread( cpuid, ::GetCurrentThread() ); + pin_thread( cpuid, reinterpret_cast< std::thread::native_handle_type >(::GetCurrentThread())); } BOOST_FIBERS_DECL @@ -37,7 +37,7 @@ uint32_t id = cpuid % 64; // set the bit mask of the logical CPU affinity.Mask = static_cast< KAFFINITY >( 1) << id; - if ( BOOST_UNLIKELY( 0 == ::SetThreadGroupAffinity( h, & affinity, nullptr) ) ) { + if ( BOOST_UNLIKELY( 0 == ::SetThreadGroupAffinity( reinterpret_cast< HANDLE >(h), & affinity, nullptr) ) ) { throw std::system_error( std::error_code( ::GetLastError(), std::system_category() ), "::SetThreadiGroupAffinity() failed");