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
ThreadSafeQueue.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
InControl
7
{
8
// Token: 0x0200006F RID: 111
9
internal
class
ThreadSafeQueue
<T>
10
{
11
// Token: 0x06000511 RID: 1297 RVA: 0x0000FF88 File Offset: 0x0000E188
12
public
ThreadSafeQueue
()
13
{
14
this.data
= 1;
15
}
16
17
// Token: 0x06000512 RID: 1298 RVA: 0x0000FFA4 File Offset: 0x0000E1A4
18
public
ThreadSafeQueue
(
int
capacity
)
19
{
20
this.data
= 1;
21
}
22
23
// Token: 0x06000513 RID: 1299 RVA: 0x0000FFC0 File Offset: 0x0000E1C0
24
public
void
Enqueue
(T
item
)
25
{
26
object
obj
= this.
sync
;
27
Queue
queue
= this.
data
;
28
long
num = 0
L
;
29
Monitor
.
Exit
(
obj
);
30
if
(num == 0
L
)
31
{
32
return
;
33
}
34
throw
new
OutOfMemoryException
();
35
}
36
37
// Token: 0x06000514 RID: 1300 RVA: 0x00010004 File Offset: 0x0000E204
38
public
bool
Dequeue
([Out] T
item
)
39
{
40
object
obj
= this.
sync
;
41
Queue
queue
= this.
data
;
42
Queue
queue2
= this.
data
;
43
long
num = 0
L
;
44
Monitor
.
Exit
(
obj
);
45
if
(num == 0
L
)
46
{
47
}
48
throw
new
OutOfMemoryException
();
49
}
50
51
// Token: 0x06000515 RID: 1301 RVA: 0x00010050 File Offset: 0x0000E250
52
public
T
Dequeue
()
53
{
54
object
obj
= this.
sync
;
55
Queue
queue
= this.
data
;
56
Queue
queue2
= this.
data
;
57
long
num = 0
L
;
58
Monitor
.
Exit
(
obj
);
59
if
(num == 0
L
)
60
{
61
}
62
throw
new
OutOfMemoryException
();
63
}
64
65
// Token: 0x06000516 RID: 1302 RVA: 0x00010098 File Offset: 0x0000E298
66
public
int
Dequeue
(
IList<T>
list
)
67
{
68
object
obj
= this.
sync
;
69
Queue
queue
= this.
data
;
70
Queue
queue2
= this.
data
;
71
long
num = 0
L
;
72
Monitor
.
Exit
(
obj
);
73
if
(num == 0
L
)
74
{
75
}
76
throw
new
OutOfMemoryException
();
77
}
78
79
// Token: 0x040003F9 RID: 1017
80
private
object
sync
;
81
82
// Token: 0x040003FA RID: 1018
83
private
Queue<T>
data
;
84
}
85
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
InControl.ThreadSafeQueue.ThreadSafeQueue
ThreadSafeQueue(int capacity)
Definition
ThreadSafeQueue.cs:18
InControl.ThreadSafeQueue.Dequeue
int Dequeue(IList< T > list)
Definition
ThreadSafeQueue.cs:66
InControl.ThreadSafeQueue.sync
object sync
Definition
ThreadSafeQueue.cs:80
InControl.ThreadSafeQueue.Enqueue
void Enqueue(T item)
Definition
ThreadSafeQueue.cs:24
InControl.ThreadSafeQueue.Dequeue
T Dequeue()
Definition
ThreadSafeQueue.cs:52
InControl.ThreadSafeQueue.Dequeue
bool Dequeue([Out] T item)
Definition
ThreadSafeQueue.cs:38
InControl.ThreadSafeQueue.data
Queue< T > data
Definition
ThreadSafeQueue.cs:83
InControl.ThreadSafeQueue.ThreadSafeQueue
ThreadSafeQueue()
Definition
ThreadSafeQueue.cs:12
InControl.ThreadSafeQueue
Definition
ThreadSafeQueue.cs:10
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
System.Collections.Generic.IList
Definition
IList.cs:7
InControl.Key.L
@ L
InControl
Definition
BindingListenOptions.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.list
@ list
System.ExceptionArgument.item
@ item
System.ExceptionArgument.capacity
@ capacity
System.ExceptionArgument.queue
@ queue
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
source
InControl
ThreadSafeQueue.cs
Generated by
1.10.0