Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ExecutionAndPublication()

void System.Lazy< T, TMetadata >.ExecutionAndPublication ( LazyHelper executionAndPublication,
bool useDefaultConstructor )
inlineprivate

Definition at line 124 of file Lazy.cs.

125 {
126 lock (executionAndPublication)
127 {
128 if (_state == executionAndPublication)
129 {
130 if (useDefaultConstructor)
131 {
133 }
134 else
135 {
136 ViaFactory(LazyThreadSafetyMode.ExecutionAndPublication);
137 }
138 }
139 }
140 }
volatile LazyHelper _state
Definition Lazy.cs:11
void ViaFactory(LazyThreadSafetyMode mode)
Definition Lazy.cs:104
void ViaConstructor()
Definition Lazy.cs:98

References System.Lazy< T, TMetadata >._state, System.Lazy< T, TMetadata >.ViaConstructor(), and System.Lazy< T, TMetadata >.ViaFactory().