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:
@@ -441,6 +441,8 @@ public:
|
||||
|
||||
void worker_unlink() noexcept;
|
||||
|
||||
void attach( context *);
|
||||
|
||||
void migrate( context *);
|
||||
|
||||
friend void intrusive_ptr_add_ref( context * ctx) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user