MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / reset_alive_status

Method reset_alive_status

src/common/TaskWrapper.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void 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
34void TaskWrapper::cancel() {
35 if (m_alive_status) {

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected