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
SafeQueue.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Runtime.InteropServices
;
4
using
System.Threading
;
5
6
namespace
Telepathy
7
{
8
// Token: 0x02000316 RID: 790
9
public
class
SafeQueue
<T>
10
{
11
// Token: 0x170001CF RID: 463
12
// (get) Token: 0x0600126E RID: 4718 RVA: 0x00059AC0 File Offset: 0x00057CC0
13
public
int
Count
14
{
15
get
16
{
17
Queue
queue
= this.
queue
;
18
Queue
queue2
= this.
queue
;
19
long
num = 0
L
;
20
Monitor
.
Exit
(
queue
);
21
if
(num == 0
L
)
22
{
23
}
24
throw
new
OutOfMemoryException
();
25
}
26
}
27
28
// Token: 0x0600126F RID: 4719 RVA: 0x00059B08 File Offset: 0x00057D08
29
public
void
Enqueue
(T
item
)
30
{
31
Queue
queue
= this.
queue
;
32
Queue
queue2
= this.
queue
;
33
long
num = 0
L
;
34
Monitor
.
Exit
(
queue
);
35
if
(num == 0
L
)
36
{
37
return
;
38
}
39
throw
new
OutOfMemoryException
();
40
}
41
42
// Token: 0x06001270 RID: 4720 RVA: 0x00059B54 File Offset: 0x00057D54
43
public
bool
TryDequeue
([Out] T result)
44
{
45
Queue
queue
= this.
queue
;
46
Queue
queue2
= this.
queue
;
47
Queue
queue3
= this.
queue
;
48
long
num = 0
L
;
49
Monitor
.
Exit
(
queue
);
50
if
(num == 0
L
)
51
{
52
}
53
throw
new
OutOfMemoryException
();
54
}
55
56
// Token: 0x06001271 RID: 4721 RVA: 0x00059BA8 File Offset: 0x00057DA8
57
public
bool
TryDequeueAll
([Out] T[] result)
58
{
59
Queue
queue
= this.
queue
;
60
Queue
queue2
= this.
queue
;
61
Queue
queue3
= this.
queue
;
62
long
num = 0
L
;
63
Monitor
.
Exit
(
queue
);
64
if
(num == 0
L
)
65
{
66
}
67
throw
new
OutOfMemoryException
();
68
}
69
70
// Token: 0x06001272 RID: 4722 RVA: 0x00059BF8 File Offset: 0x00057DF8
71
public
void
Clear
()
72
{
73
Queue
queue
= this.
queue
;
74
Queue
queue2
= this.
queue
;
75
long
num = 0
L
;
76
Monitor
.
Exit
(
queue
);
77
if
(num == 0
L
)
78
{
79
return
;
80
}
81
throw
new
OutOfMemoryException
();
82
}
83
84
// Token: 0x06001273 RID: 4723 RVA: 0x00059C44 File Offset: 0x00057E44
85
public
SafeQueue
()
86
{
87
this.queue
=
this
;
88
base
..ctor();
89
}
90
91
// Token: 0x04002208 RID: 8712
92
private
Queue<T>
queue
;
93
}
94
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Collections.Generic.Queue
Definition
Queue.cs:14
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor
Definition
Monitor.cs:9
Telepathy.SafeQueue.TryDequeueAll
bool TryDequeueAll([Out] T[] result)
Definition
SafeQueue.cs:57
Telepathy.SafeQueue.Clear
void Clear()
Definition
SafeQueue.cs:71
Telepathy.SafeQueue.queue
Queue< T > queue
Definition
SafeQueue.cs:92
Telepathy.SafeQueue.Enqueue
void Enqueue(T item)
Definition
SafeQueue.cs:29
Telepathy.SafeQueue.TryDequeue
bool TryDequeue([Out] T result)
Definition
SafeQueue.cs:43
Telepathy.SafeQueue.SafeQueue
SafeQueue()
Definition
SafeQueue.cs:85
Telepathy.SafeQueue.Count
int Count
Definition
SafeQueue.cs:14
Telepathy.SafeQueue
Definition
SafeQueue.cs:10
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.item
@ item
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Telepathy
Definition
Client.cs:12
source
Telepathy
SafeQueue.cs
Generated by
1.10.0