mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-30 07:42:52 +00:00
rename to symmetric_coroutine_call<>
This commit is contained in:
@@ -38,7 +38,7 @@ private:
|
||||
public:
|
||||
int id;
|
||||
player * nxt;
|
||||
coro_t coro;
|
||||
coro_t::call_type coro;
|
||||
boost::random::random_device gen;
|
||||
|
||||
player( int id_) :
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
std::vector< int > const& from;
|
||||
std::size_t idx;
|
||||
merger * other;
|
||||
coro_t coro;
|
||||
coro_t::call_type coro;
|
||||
|
||||
merger( std::vector< int > const& from_, std::vector< int > & to, std::size_t max) :
|
||||
max_( max),
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
typedef boost::coroutines::symmetric_coroutine< void > coro_t;
|
||||
|
||||
coro_t * c1 = 0;
|
||||
coro_t * c2 = 0;
|
||||
coro_t::call_type * c1 = 0;
|
||||
coro_t::call_type * c2 = 0;
|
||||
|
||||
void foo( coro_t::yield_type & yield)
|
||||
{
|
||||
@@ -35,8 +35,8 @@ void bar( coro_t::yield_type & yield)
|
||||
|
||||
int main( int argc, char * argv[])
|
||||
{
|
||||
coro_t coro1( foo);
|
||||
coro_t coro2( bar);
|
||||
coro_t::call_type coro1( foo);
|
||||
coro_t::call_type coro2( bar);
|
||||
c1 = & coro1;
|
||||
c2 = & coro2;
|
||||
coro1();
|
||||
|
||||
Reference in New Issue
Block a user