#include <vector>
#include <boost/fiber/all.hpp>
+#include <boost/fiber/numa/pin_thread.hpp>
#include <boost/predef.h>
#include "barrier.hpp"
for ( unsigned int i = 1; i < n; ++i) {
threads.emplace_back( thread, i - 1, & b);
};
- // Windows 10 and FreeBSD require a fiber stack of 8kb
- // otherwise the stack gets exhausted
- // stack requirements must be checked for other OS too
-#if BOOST_OS_WINDOWS || BOOST_OS_BSD
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
-#else
- allocator_type salloc{ allocator_type::traits_type::page_size() };
-#endif
std::uint64_t result{ 0 };
channel_type rc{ 2 };
b.wait();