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

◆ TryDequeue< T >()

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

Definition at line 295 of file ImmutableInterlocked.cs.

296 {
298 bool flag;
299 do
300 {
301 Requires.NotNull(immutableQueue, "location");
302 if (immutableQueue.IsEmpty)
303 {
304 value = default(T);
305 return false;
306 }
311 }
312 while (!flag);
313 return true;
314 }
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.