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
|
#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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user