terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
ThreadPoolTaskScheduler.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.CompilerServices
;
3
using
Internal.Threading.Tasks.Tracing
;
4
5
namespace
System.Threading.Tasks
6
{
7
// Token: 0x02000251 RID: 593
8
internal
sealed
class
ThreadPoolTaskScheduler
:
TaskScheduler
9
{
10
// Token: 0x0600144E RID: 5198 RVA: 0x0002AA6C File Offset: 0x00028C6C
11
internal
ThreadPoolTaskScheduler
()
12
{
13
if
(!
true
)
14
{
15
}
16
base
..ctor();
17
}
18
19
// Token: 0x0600144F RID: 5199 RVA: 0x0002AA84 File Offset: 0x00028C84
20
protected
internal
override
void
QueueTask
(
Task
task
)
21
{
22
bool
enabled =
TaskTrace
.
Enabled
;
23
if
(!
true
)
24
{
25
}
26
if
(!
true
)
27
{
28
}
29
Task
parent =
task
.
m_parent
;
30
int
id
=
base
.
Id
;
31
int
id2
=
task
.Id;
32
if
(parent !=
null
)
33
{
34
int
id3
= parent.
Id
;
35
}
36
TaskCreationOptions
options
=
task
.Options;
37
TaskCreationOptions
options2
=
task
.Options;
38
TaskCreationOptions
options3
=
task
.Options;
39
int
num;
40
ThreadPool
.
UnsafeQueueCustomWorkItem
(
task
, num != 0);
41
}
42
43
// Token: 0x06001450 RID: 5200 RVA: 0x0002AAF4 File Offset: 0x00028CF4
44
protected
override
bool
TryExecuteTaskInline
(
Task
task
,
bool
taskWasPreviouslyQueued
)
45
{
46
bool
flag =
ThreadPool
.
TryPopCustomWorkItem
(
task
);
47
long
num = 0
L
;
48
bool
flag2
=
task
.ExecuteEntry(num != 0
L
);
49
if
(
false
)
50
{
51
throw
new
OutOfMemoryException
();
52
}
53
throw
new
OutOfMemoryException
();
54
}
55
56
// Token: 0x06001451 RID: 5201 RVA: 0x0002AB2C File Offset: 0x00028D2C
57
protected
internal
override
bool
TryDequeue
(
Task
task
)
58
{
59
return
ThreadPool
.
TryPopCustomWorkItem
(
task
);
60
}
61
62
// Token: 0x06001452 RID: 5202 RVA: 0x0002AB40 File Offset: 0x00028D40
63
internal
override
void
NotifyWorkItemProgress
()
64
{
65
ThreadPool
.
EnsureVMInitialized
();
66
}
67
68
// Token: 0x170001FD RID: 509
69
// (get) Token: 0x06001453 RID: 5203 RVA: 0x0002AB54 File Offset: 0x00028D54
70
internal
override
bool
RequiresAtomicStartTransition
71
{
72
get
73
{
74
}
75
}
76
77
// Token: 0x06001454 RID: 5204 RVA: 0x0002AB64 File Offset: 0x00028D64
78
// Note: this type is marked as 'beforefieldinit'.
79
static
ThreadPoolTaskScheduler
()
80
{
81
if
(!
true
)
82
{
83
}
84
}
85
86
// Token: 0x04000AC5 RID: 2757
87
private
static
readonly
ParameterizedThreadStart
s_longRunningThreadWork
;
88
89
// Token: 0x02000252 RID: 594
90
[
CompilerGenerated
]
91
[Serializable]
92
private
sealed
class <>
c
93
{
94
// Token: 0x06001455 RID: 5205 RVA: 0x0002AB74 File Offset: 0x00028D74
95
// Note: this type is marked as 'beforefieldinit'.
96
static <>
c()
97
{
98
}
99
100
// Token: 0x06001456 RID: 5206 RVA: 0x0002AB84 File Offset: 0x00028D84
101
public <>
c()
102
{
103
}
104
105
// Token: 0x06001457 RID: 5207 RVA: 0x0002AB98 File Offset: 0x00028D98
106
internal
void
<.cctor>b__10_0(
object
s
)
107
{
108
if
(
s
!=
null
)
109
{
110
}
111
}
112
113
// Token: 0x04000AC6 RID: 2758
114
public
static
readonly
ThreadPoolTaskScheduler
.<>
c <>
9;
115
}
116
}
117
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Internal.Threading.Tasks.Tracing.TaskTrace.Enabled
static bool Enabled
Definition
TaskTrace.cs:13
Internal.Threading.Tasks.Tracing.TaskTrace
Definition
TaskTrace.cs:9
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Threading.ParameterizedThreadStart
Definition
ParameterizedThreadStart.cs:7
System.Threading.Tasks.TaskScheduler
Definition
TaskScheduler.cs:11
System.Threading.Tasks.Task.Id
int Id
Definition
Task.2.cs:319
System.Threading.Tasks.Task.m_parent
readonly Task m_parent
Definition
Task.2.cs:1868
System.Threading.Tasks.Task
Definition
Task.cs:12
System.Threading.Tasks.ThreadPoolTaskScheduler.NotifyWorkItemProgress
override void NotifyWorkItemProgress()
Definition
ThreadPoolTaskScheduler.cs:63
System.Threading.Tasks.ThreadPoolTaskScheduler.ThreadPoolTaskScheduler
static ThreadPoolTaskScheduler()
Definition
ThreadPoolTaskScheduler.cs:79
System.Threading.Tasks.ThreadPoolTaskScheduler.QueueTask
override void QueueTask(Task task)
Definition
ThreadPoolTaskScheduler.cs:20
System.Threading.Tasks.ThreadPoolTaskScheduler.TryDequeue
override bool TryDequeue(Task task)
Definition
ThreadPoolTaskScheduler.cs:57
System.Threading.Tasks.ThreadPoolTaskScheduler.ThreadPoolTaskScheduler
ThreadPoolTaskScheduler()
Definition
ThreadPoolTaskScheduler.cs:11
System.Threading.Tasks.ThreadPoolTaskScheduler.RequiresAtomicStartTransition
override bool RequiresAtomicStartTransition
Definition
ThreadPoolTaskScheduler.cs:71
System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline
override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
Definition
ThreadPoolTaskScheduler.cs:44
System.Threading.Tasks.ThreadPoolTaskScheduler.s_longRunningThreadWork
static readonly ParameterizedThreadStart s_longRunningThreadWork
Definition
ThreadPoolTaskScheduler.cs:87
System.Threading.Tasks.ThreadPoolTaskScheduler
Definition
ThreadPoolTaskScheduler.cs:9
System.Threading.ThreadPool.UnsafeQueueCustomWorkItem
static void UnsafeQueueCustomWorkItem(IThreadPoolWorkItem workItem, bool forceGlobal)
Definition
ThreadPool.cs:81
System.Threading.ThreadPool.EnsureVMInitialized
static void EnsureVMInitialized()
Definition
ThreadPool.cs:109
System.Threading.ThreadPool.TryPopCustomWorkItem
static bool TryPopCustomWorkItem(IThreadPoolWorkItem workItem)
Definition
ThreadPool.cs:90
System.Threading.ThreadPool
Definition
ThreadPool.cs:10
Internal.Threading.Tasks.Tracing
Definition
TaskTrace.cs:6
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System.Threading.Tasks.TaskCreationOptions
TaskCreationOptions
Definition
TaskCreationOptions.cs:8
System.Threading.Tasks
Definition
AsyncCausalityStatus.cs:5
System.ExceptionArgument.s
@ s
System.ExceptionArgument.task
@ task
System.ExceptionArgument.options
@ options
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
System
Threading
Tasks
ThreadPoolTaskScheduler.cs
Generated by
1.10.0