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

◆ Or() [2/4]

static long System.Threading.Interlocked.Or ( ref long location1,
long value )
inlinestatic

Definition at line 285 of file Interlocked.cs.

286 {
287 long num = location1;
288 long num2;
289 while (true)
290 {
291 long value2 = num | value;
292 num2 = CompareExchange(ref location1, value2, num);
293 if (num2 == num)
294 {
295 break;
296 }
297 num = num2;
298 }
299 return num2;
300 }
static int CompareExchange(ref int location1, int value, int comparand)

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