基于C++ Coroutines提案 ‘Stackless Resumable Functions’编写的协程库
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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;
- }
- }
|