diff --git a/server/robotserver/coroutine.cc b/server/robotserver/coroutine.cc index cccdaa9e..fbc05807 100644 --- a/server/robotserver/coroutine.cc +++ b/server/robotserver/coroutine.cc @@ -5,19 +5,11 @@ Coroutine::Coroutine(std::function cb) { cb_ = cb; - #if 0 source_ = std::make_shared::pull_type> ( - [&] (boost::coroutines2::coroutine::pull_type& sink) + [this] (boost::coroutines2::coroutine::push_type& sink) { - - }); - #endif - boost::coroutines2::coroutine::pull_type source - ( - [&] (boost::coroutines2::coroutine::push_type& sink) - { - + cb_(this); }); }