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

◆ And() [1/4]

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

Definition at line 207 of file Interlocked.cs.

208 {
209 int num = location1;
210 int num2;
211 while (true)
212 {
213 int value2 = num & value;
214 num2 = CompareExchange(ref location1, value2, num);
215 if (num2 == num)
216 {
217 break;
218 }
219 num = num2;
220 }
221 return num2;
222 }
static int CompareExchange(ref int location1, int value, int comparand)

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

Referenced by System.Threading.Interlocked.And(), System.Threading.Interlocked.And(), and System.Threading.Tasks.Task< TResult >.SetNotificationForWaitCompletion().