2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-16 13:22:17 +00:00

re-add previously removed context::attach()

This commit is contained in:
Oliver Kowalke
2015-10-21 15:40:50 +02:00
parent 5973f6a262
commit 5277c51bbb
2 changed files with 8 additions and 0 deletions

View File

@@ -441,6 +441,8 @@ public:
void worker_unlink() noexcept;
void attach( context *);
void migrate( context *);
friend void intrusive_ptr_add_ref( context * ctx) {

View File

@@ -437,6 +437,12 @@ context::wait_unlink() noexcept {
wait_hook_.unlink();
}
void
context::attach( context * ctx) {
BOOST_ASSERT( nullptr != ctx);
scheduler_->attach_worker_context( ctx);
}
void
context::migrate( context * ctx) {
BOOST_ASSERT( nullptr != ctx);