2
0
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:
Oliver Kowalke
2013-11-02 16:56:24 +01:00
parent 393797a94e
commit 64c372d059
3 changed files with 43 additions and 1 deletions

View File

@@ -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()
{