]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/fiber/performance/fiber/skynet_shared_join.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / fiber / performance / fiber / skynet_shared_join.cpp
index 086e8d4101dcbe18b2f51b62a6a02c0bfafbec84..c26530f2fdc97fefa40bc26abe38adcb7a66ca67 100644 (file)
@@ -22,6 +22,7 @@
 #include <vector>
 
 #include <boost/fiber/all.hpp>
+#include <boost/fiber/numa/pin_thread.hpp>
 #include <boost/predef.h>
 
 #include "barrier.hpp"
@@ -83,14 +84,7 @@ int main() {
         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();