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

◆ Or() [1/4]

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

Definition at line 259 of file Interlocked.cs.

260 {
261 int num = location1;
262 int num2;
263 while (true)
264 {
265 int value2 = num | value;
266 num2 = CompareExchange(ref location1, value2, num);
267 if (num2 == num)
268 {
269 break;
270 }
271 num = num2;
272 }
273 return num2;
274 }
static int CompareExchange(ref int location1, int value, int comparand)

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

Referenced by System.Text.RegularExpressions.RegexCharClass.CharInClass(), System.UriParser.InitializeAndValidate(), System.Uri.InterlockedSetFlags(), System.UriParser.InternalValidate(), System.Threading.Interlocked.Or(), System.Threading.Interlocked.Or(), and System.Runtime.InteropServices.SafeHandle.SetHandleAsInvalid().