mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
rethrow exceptions thrown by pull-coroutine ctor
This commit is contained in:
parent
0ecc359300
commit
6317f864cb
@ -103,6 +103,9 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
|||||||
return other->c.resume();
|
return other->c.resume();
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
if ( except) {
|
||||||
|
std::rethrow_exception( except);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -250,6 +253,9 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo
|
|||||||
return other->c.resume();
|
return other->c.resume();
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
if ( except) {
|
||||||
|
std::rethrow_exception( except);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -371,6 +377,9 @@ pull_coroutine< void >::control_block::control_block( context::preallocated pall
|
|||||||
return other->c.resume();
|
return other->c.resume();
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
if ( except) {
|
||||||
|
std::rethrow_exception( except);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user