mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
rename transfer_data() -> get_data()
This commit is contained in:
parent
1259de92b6
commit
638d3f209c
@ -105,7 +105,7 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
||||
});
|
||||
#endif
|
||||
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() {
|
||||
c = boost::context::resume( std::move( c) );
|
||||
if ( boost::context::data_available( c) ) {
|
||||
set( boost::context::transfer_data< T >( c) );
|
||||
set( boost::context::get_data< T >( c) );
|
||||
} else {
|
||||
reset();
|
||||
}
|
||||
@ -271,7 +271,7 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo
|
||||
});
|
||||
#endif
|
||||
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() {
|
||||
c = boost::context::resume( std::move( c) );
|
||||
if ( boost::context::data_available( c) ) {
|
||||
set( boost::context::transfer_data< T & >( c) );
|
||||
set( boost::context::get_data< T & >( c) );
|
||||
} else {
|
||||
reset();
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
||||
other->c = boost::context::resume( std::move( other->c) );
|
||||
// set transferred value
|
||||
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 {
|
||||
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) );
|
||||
// set transferred value
|
||||
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 {
|
||||
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) );
|
||||
// set transferred value
|
||||
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 {
|
||||
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) );
|
||||
// set transferred value
|
||||
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 {
|
||||
synthesized_cb.reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user