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
LazyInitializer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Cpp2IlInjected
;
3
4
namespace
System.Threading
5
{
6
// Token: 0x020001BB RID: 443
7
public
static
class
LazyInitializer
8
{
9
// Token: 0x060010AF RID: 4271 RVA: 0x0000207A File Offset: 0x0000027A
10
public
static
T
EnsureInitialized<T>
(T target)
where
T
:
class
11
{
12
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
13
}
14
15
// Token: 0x060010B0 RID: 4272 RVA: 0x00023608 File Offset: 0x00021808
16
private
static
T
EnsureInitializedCore<T>
(T target)
where
T
:
class
17
{
18
}
19
20
// Token: 0x060010B1 RID: 4273 RVA: 0x0000207A File Offset: 0x0000027A
21
public
static
T
EnsureInitialized<T>
(T target,
Func<T>
valueFactory
)
where
T
:
class
22
{
23
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
24
}
25
26
// Token: 0x060010B2 RID: 4274 RVA: 0x00023618 File Offset: 0x00021818
27
private
static
T
EnsureInitializedCore<T>
(T target,
Func<T>
valueFactory
)
where
T
:
class
28
{
29
while
(target ==
null
)
30
{
31
}
32
return
target;
33
}
34
35
// Token: 0x060010B3 RID: 4275 RVA: 0x0000207A File Offset: 0x0000027A
36
public
static
T
EnsureInitialized<T>
(T target,
object
syncLock
,
Func<T>
valueFactory
)
where
T
:
class
37
{
38
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
39
}
40
41
// Token: 0x060010B4 RID: 4276 RVA: 0x0002362C File Offset: 0x0002182C
42
private
static
T
EnsureInitializedCore<T>
(T target,
object
syncLock
,
Func<T>
valueFactory
)
where
T
:
class
43
{
44
long
num = 0
L
;
45
object
obj
;
46
Monitor
.
Enter
(
obj
, num != 0
L
);
47
if
(
syncLock
!=
null
)
48
{
49
long
num2
= 0
L
;
50
Monitor
.
Exit
(
obj
);
51
if
(
num2
!= 0
L
|| 5 == 0)
52
{
53
}
54
throw
new
OutOfMemoryException
();
55
}
56
long
num3
= 0
L
;
57
Monitor
.
Exit
(
obj
);
58
if
(
num3
== 0
L
)
59
{
60
}
61
throw
new
OutOfMemoryException
();
62
}
63
64
// Token: 0x060010B5 RID: 4277 RVA: 0x0002366C File Offset: 0x0002186C
65
private
static
object
EnsureLockInitialized
(
object
syncLock
)
66
{
67
object
obj
;
68
if
(
obj
==
null
)
69
{
70
}
71
return
obj
;
72
}
73
}
74
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Func
Definition
Func.cs:8
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Threading.LazyInitializer.EnsureLockInitialized
static object EnsureLockInitialized(object syncLock)
Definition
LazyInitializer.cs:65
System.Threading.LazyInitializer.EnsureInitialized< T >
static T EnsureInitialized< T >(T target)
Definition
LazyInitializer.cs:10
System.Threading.LazyInitializer.EnsureInitializedCore< T >
static T EnsureInitializedCore< T >(T target)
Definition
LazyInitializer.cs:16
System.Threading.LazyInitializer
Definition
LazyInitializer.cs:8
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor.Enter
static void Enter(object obj)
Definition
Monitor.cs:11
System.Threading.Monitor
Definition
Monitor.cs:9
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.obj
@ obj
System.ConsoleKey.T
@ T
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
System
Threading
LazyInitializer.cs
Generated by
1.10.0