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

◆ And() [2/4]

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

Definition at line 233 of file Interlocked.cs.

234 {
235 long num = location1;
236 long num2;
237 while (true)
238 {
239 long value2 = num & value;
240 num2 = CompareExchange(ref location1, value2, num);
241 if (num2 == num)
242 {
243 break;
244 }
245 num = num2;
246 }
247 return num2;
248 }
static int CompareExchange(ref int location1, int value, int comparand)

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