rename to symmetric_coroutine_call<>

This commit is contained in:
Oliver Kowalke
2014-02-05 19:27:22 +01:00
parent baabddae44
commit 82a78583ff
19 changed files with 1231 additions and 1199 deletions

View File

@@ -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_) :

View File

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

View File

@@ -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();