rename transfer_data() -> get_data()

This commit is contained in:
oliver Kowalke 2017-02-01 09:32:05 +01:00
parent 1259de92b6
commit 638d3f209c
2 changed files with 8 additions and 8 deletions

View File

@ -105,7 +105,7 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc,
}); });
#endif #endif
if ( boost::context::data_available( c) ) { if ( boost::context::data_available( c) ) {
set( boost::context::transfer_data< T >( c) ); set( boost::context::get_data< T >( c) );
} }
} }
@ -141,7 +141,7 @@ void
pull_coroutine< T >::control_block::resume() { pull_coroutine< T >::control_block::resume() {
c = boost::context::resume( std::move( c) ); c = boost::context::resume( std::move( c) );
if ( boost::context::data_available( c) ) { if ( boost::context::data_available( c) ) {
set( boost::context::transfer_data< T >( c) ); set( boost::context::get_data< T >( c) );
} else { } else {
reset(); reset();
} }
@ -271,7 +271,7 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo
}); });
#endif #endif
if ( boost::context::data_available( c) ) { if ( boost::context::data_available( c) ) {
set( boost::context::transfer_data< T & >( c) ); set( boost::context::get_data< T & >( c) );
} }
} }
@ -299,7 +299,7 @@ void
pull_coroutine< T & >::control_block::resume() { pull_coroutine< T & >::control_block::resume() {
c = boost::context::resume( std::move( c) ); c = boost::context::resume( std::move( c) );
if ( boost::context::data_available( c) ) { if ( boost::context::data_available( c) ) {
set( boost::context::transfer_data< T & >( c) ); set( boost::context::get_data< T & >( c) );
} else { } else {
reset(); reset();
} }

View File

@ -60,7 +60,7 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
other->c = boost::context::resume( std::move( other->c) ); other->c = boost::context::resume( std::move( other->c) );
// set transferred value // set transferred value
if ( boost::context::data_available( other->c) ) { if ( boost::context::data_available( other->c) ) {
synthesized_cb.set( boost::context::transfer_data< T >( other->c) ); synthesized_cb.set( boost::context::get_data< T >( other->c) );
} else { } else {
synthesized_cb.reset(); synthesized_cb.reset();
} }
@ -93,7 +93,7 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
other->c = boost::context::resume( std::move( other->c) ); other->c = boost::context::resume( std::move( other->c) );
// set transferred value // set transferred value
if ( boost::context::data_available( other->c) ) { if ( boost::context::data_available( other->c) ) {
synthesized_cb.set( boost::context::transfer_data< T >( other->c) ); synthesized_cb.set( boost::context::get_data< T >( other->c) );
} else { } else {
synthesized_cb.reset(); synthesized_cb.reset();
} }
@ -193,7 +193,7 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo
other->c = boost::context::resume( std::move( other->c) ); other->c = boost::context::resume( std::move( other->c) );
// set transferred value // set transferred value
if ( boost::context::data_available( other->c) ) { if ( boost::context::data_available( other->c) ) {
synthesized_cb.set( boost::context::transfer_data< T & >( other->c) ); synthesized_cb.set( boost::context::get_data< T & >( other->c) );
} else { } else {
synthesized_cb.reset(); synthesized_cb.reset();
} }
@ -226,7 +226,7 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo
other->c = boost::context::resume( std::move( other->c) ); other->c = boost::context::resume( std::move( other->c) );
// set transferred value // set transferred value
if ( boost::context::data_available( other->c) ) { if ( boost::context::data_available( other->c) ) {
synthesized_cb.set( boost::context::transfer_data< T & >( other->c) ); synthesized_cb.set( boost::context::get_data< T & >( other->c) );
} else { } else {
synthesized_cb.reset(); synthesized_cb.reset();
} }