2
0
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:
Oliver Kowalke
2015-11-22 14:42:28 +01:00
parent ca655a84d9
commit 6d3f00902f
4 changed files with 12 additions and 12 deletions

View File

@@ -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