coroutine: intro of coroutine<>::pull_type, coroutine<>::push_type

[SVN r85058]
This commit is contained in:
Oliver Kowalke
2013-07-17 14:09:07 +00:00
parent c39d9509a4
commit 865902f9b5
22 changed files with 397 additions and 487 deletions

View File

@@ -32,7 +32,7 @@ void bar( int i)
}
#ifdef BOOST_COROUTINES_UNIDIRECT
void foo( boost::coroutines::pull_coroutine< void > & c)
void foo( boost::coroutines::coroutine< void >::pull_type & c)
{
bar( count);
c();
@@ -41,7 +41,7 @@ void foo( boost::coroutines::pull_coroutine< void > & c)
void thread_fn()
{
{
boost::coroutines::push_coroutine< void > c( foo);
boost::coroutines::coroutine< void >::push_type c( foo);
c();
}
}