Пример #1
0
 public void Release(int threadId)
 {
     // Release spinlock
     ReleaseInternal(Thread.GetThreadFromThreadId(threadId), threadId);
 }
Пример #2
0
 public void Acquire(int threadId)
 {
     AcquireInternal(Thread.GetThreadFromThreadId(threadId), threadId);
 }