基于C++ Coroutines提案 ‘Stackless Resumable Functions’编写的协程库
Du kannst nicht mehr als 25 Themen auswählen
Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
12345678910111213141516171819 |
- #include "librf/librf.h"
-
- namespace librf
- {
- LIBRF_API task_t::task_t() noexcept
- : _stop(nostopstate)
- {
- }
-
- LIBRF_API task_t::~task_t()
- {
- }
-
- LIBRF_API const stop_source & task_t::get_stop_source()
- {
- _stop.make_sure_possible();
- return _stop;
- }
- }
|