mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-31 08:02:18 +00:00
coroutine: coroutine_error + coroutine_errc
[SVN r85139]
This commit is contained in:
@@ -32,17 +32,17 @@ void bar( int i)
|
||||
}
|
||||
|
||||
#ifdef BOOST_COROUTINES_UNIDIRECT
|
||||
void foo( boost::coroutines::coroutine< void >::pull_type & c)
|
||||
void foo( boost::coroutines::coroutine< void >::pull_type & source)
|
||||
{
|
||||
bar( count);
|
||||
c();
|
||||
source();
|
||||
}
|
||||
|
||||
void thread_fn()
|
||||
{
|
||||
{
|
||||
boost::coroutines::coroutine< void >::push_type c( foo);
|
||||
c();
|
||||
boost::coroutines::coroutine< void >::push_type sink( foo);
|
||||
sink();
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user