| 24 | } |
| 25 | |
| 26 | void TaskWrapper::reset_alive_status() { |
| 27 | m_alive_status = {new concurrency::cancellation_token_source(), []( |
| 28 | concurrency::cancellation_token_source *source) { |
| 29 | source->cancel(); |
| 30 | delete source; |
| 31 | }}; |
| 32 | } |
| 33 | |
| 34 | void TaskWrapper::cancel() { |
| 35 | if (m_alive_status) { |