]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/fiber/src/numa/solaris/pin_thread.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / fiber / src / numa / solaris / pin_thread.cpp
index 40312e3828c3cc09648d4a0e29d6df35cc5d44c4..0443f1e70cf6dc95c644316fd75d18018d3882aa 100644 (file)
@@ -25,8 +25,13 @@ namespace numa {
 
 BOOST_FIBERS_DECL
 void pin_thread( std::uint32_t cpuid) {
+    pin_thread( cpuid, P_MYID);
+}
+
+BOOST_FIBERS_DECL
+void pin_thread( std::uint32_t cpuid, std::thread::native_handle_type h) {
     if ( BOOST_UNLIKELY( -1 == ::processor_bind( P_LWPID,
-                                 P_MYID,
+                                 h,
                                  static_cast< processorid_t >( cpuid),
                                  0) ) ) {
         throw std::system_error(