$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [coroutine] Launch a thread in a coroutine
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2014-01-16 09:36:04
2014/1/15 Pierre Talbot <ptalbot_at_[hidden]>
> void push_data(boost::coroutines::coroutine<std::string>::push_type& sink)
> {
> sink("test1");
> t = std::thread(push_data2, std::move(sink));
> }
>
'sink' is synthesized by the framework and is attached to coroutine-stack.
because you move the synth. coroutine, the code inside the framework can't
access it any more (therefore the assertion from intrusive_ptr<>).