You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Threading/SpinWait.xml
+4-139Lines changed: 4 additions & 139 deletions
Original file line number
Diff line number
Diff line change
@@ -172,144 +172,9 @@
172
172
## Examples
173
173
The following is an example of using SpinWait in a simple lock-free stack implementation. (This is just an example. If an efficient, thread-safe stack is needed, consider using ConcurrentStack.)
174
174
175
-
`// C#`
176
-
177
-
`public class LockFreeStack<T>`
178
-
179
-
`{`
180
-
181
-
`private volatile Node m_head;`
182
-
183
-
`private class Node { public Node Next; public T Value; }`
0 commit comments