mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-15 00:52:34 +00:00
add thread_affinity() to fiber's public interface
This commit is contained in:
@@ -42,6 +42,22 @@ fiber::priority( int prio) BOOST_NOEXCEPT
|
||||
detail::scheduler::instance()->priority( impl_, prio);
|
||||
}
|
||||
|
||||
bool
|
||||
fiber::thread_affinity() const BOOST_NOEXCEPT
|
||||
{
|
||||
BOOST_ASSERT( impl_);
|
||||
|
||||
return impl_->thread_affinity();
|
||||
}
|
||||
|
||||
void
|
||||
fiber::thread_affinity( bool req) BOOST_NOEXCEPT
|
||||
{
|
||||
BOOST_ASSERT( impl_);
|
||||
|
||||
impl_->thread_affinity( req);
|
||||
}
|
||||
|
||||
void
|
||||
fiber::join()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user