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

◆ TryPop< T >()

static bool System.Collections.Immutable.ImmutableInterlocked.TryPop< T > ( ref ImmutableStack< T > location,
[MaybeNullWhen(false)] out T value )
inlinestatic

Definition at line 259 of file ImmutableInterlocked.cs.

260 {
262 bool flag;
263 do
264 {
265 Requires.NotNull(immutableStack, "location");
266 if (immutableStack.IsEmpty)
267 {
268 value = default(T);
269 return false;
270 }
275 }
276 while (!flag);
277 return true;
278 }
static int CompareExchange(ref int location1, int value, int comparand)
static bool Read(ref bool location)
Definition Volatile.cs:67

References System.Threading.Interlocked.CompareExchange(), System.Threading.Volatile.Read(), and System.value.