CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
task_status.h
1
2
#pragma once
3
4
namespace
System
{
namespace
Threading {
namespace
Tasks {
5
6
// Represents the current stage in the lifecycle of a System.Threading.Tasks.Task.
7
enum 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.
13
WaitingForActivation
= 1,
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.
20
WaitingForChildrenToComplete
= 4,
21
// The task completed execution successfully.
22
RanToCompletion
= 5,
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
System::Threading::Tasks::TaskStatus
TaskStatus
Definition:
task_status.h:8
System::Threading::Tasks::TaskStatus::Canceled
@ Canceled
System::Threading::Tasks::TaskStatus::WaitingForActivation
@ WaitingForActivation
System::Threading::Tasks::TaskStatus::Faulted
@ Faulted
System::Threading::Tasks::TaskStatus::WaitingToRun
@ WaitingToRun
System::Threading::Tasks::TaskStatus::RanToCompletion
@ RanToCompletion
System::Threading::Tasks::TaskStatus::WaitingForChildrenToComplete
@ WaitingForChildrenToComplete
System::Threading::Running
@ Running
Thread is running.
Definition:
thread_state.h:11
System
Definition:
db_command.h:9
include
system
threading
tasks
task_status.h
Generated by
1.9.4