mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
use this in capture-list
This commit is contained in:
@@ -299,7 +299,7 @@ scheduler::yield( context * active_ctx) noexcept {
|
||||
// from one ready-queue) the context must be
|
||||
// already suspended until another thread resumes it
|
||||
// (== maked as ready)
|
||||
std::function< void() > func([=](){
|
||||
std::function< void() > func([this,active_ctx](){
|
||||
set_ready( active_ctx);
|
||||
});
|
||||
// resume another fiber
|
||||
|
||||
Reference in New Issue
Block a user