CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
task_status.h
1
2#pragma once
3
4namespace System { namespace Threading { namespace Tasks {
5
6// Represents the current stage in the lifecycle of a System.Threading.Tasks.Task.
7enum class TaskStatus
8{
9 // The task has been initialized but has not yet been scheduled.
10 Created = 0,
11 // The task is waiting to be activated and scheduled internally by the .NET Framework
12 // infrastructure.
14 // The task has been scheduled for execution but has not yet begun executing.
15 WaitingToRun = 2,
16 // The task is running but has not yet completed.
17 Running = 3,
18 // The task has finished executing and is implicitly waiting for attached child
19 // tasks to complete.
21 // The task completed execution successfully.
23 // The task acknowledged cancellation by throwing an OperationCanceledException
24 // with its own CancellationToken while the token was in signaled state, or the
25 // task's CancellationToken was already signaled before the task started executing.
26 // For more information, see Task Cancellation.
27 Canceled = 6,
28 // The task completed due to an unhandled exception.
29 Faulted = 7
30};
31
32}}} // namespace System::Threading::Tasks
TaskStatus
Definition: task_status.h:8
@ Running
Thread is running.
Definition: thread_state.h:11
Definition: db_command.h:9