mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-30 19:52:18 +00:00
coroutine: intro of coroutine<>::pull_type, coroutine<>::push_type
[SVN r85058]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user