SpinLock.cs
Go to the documentation of this file.
52 [System.Diagnostics.DebuggerTypeProxy ("System.Threading.SpinLock+SystemThreading_SpinLockDebugView")]
164 throw new ArgumentOutOfRangeException ("milliSeconds", "millisecondsTimeout is a negative number other than -1");
185 lockTaken = Interlocked.CompareExchange (ref ticket.TotalValue, newTotalValue, totalValue) == totalValue;
192 } while (!stop && (millisecondsTimeout == -1 || (sw.ElapsedMilliseconds - start) < millisecondsTimeout));
void TryEnter(TimeSpan timeout, ref bool lockTaken)
Definition: SpinLock.cs:156
Definition: SpinLock.cs:53
Definition: SpinWait.cs:30
readonly bool isThreadOwnerTrackingEnabled
Definition: SpinLock.cs:58
Definition: ConfiguredTaskAwaitable.cs:33
Definition: AggregateException.cs:31
Definition: Watch.cs:31
ConcurrentOrderedList< int > stallTickets
Definition: SpinLock.cs:62
bool IsThreadOwnerTrackingEnabled
Definition: SpinLock.cs:64
Definition: IStructuralComparable.cs:33
SpinLock(bool enableThreadOwnerTracking)
Initializes a new instance of the System.Threading.SpinLock struct.
Definition: SpinLock.cs:94
bool TryAdd(T data)
Definition: ConcurrentOrderedList.cs:89
bool TryRemove(T data)
Definition: ConcurrentOrderedList.cs:103
void TryEnter(int millisecondsTimeout, ref bool lockTaken)
Definition: SpinLock.cs:161
Definition: SpinLock.cs:37
Definition: AotInterlocked.cs:3