1
This commit is contained in:
parent
c8f08c2975
commit
99cae679b9
@ -5,19 +5,11 @@
|
|||||||
Coroutine::Coroutine(std::function<void(Coroutine*)> cb)
|
Coroutine::Coroutine(std::function<void(Coroutine*)> cb)
|
||||||
{
|
{
|
||||||
cb_ = cb;
|
cb_ = cb;
|
||||||
#if 0
|
|
||||||
source_ = std::make_shared<boost::coroutines2::coroutine<void>::pull_type>
|
source_ = std::make_shared<boost::coroutines2::coroutine<void>::pull_type>
|
||||||
(
|
(
|
||||||
[&] (boost::coroutines2::coroutine<void>::pull_type& sink)
|
[this] (boost::coroutines2::coroutine<void>::push_type& sink)
|
||||||
{
|
{
|
||||||
|
cb_(this);
|
||||||
});
|
|
||||||
#endif
|
|
||||||
boost::coroutines2::coroutine<void>::pull_type source
|
|
||||||
(
|
|
||||||
[&] (boost::coroutines2::coroutine<void>::push_type& sink)
|
|
||||||
{
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user