public void Release(int threadId)
 {
     // Release spinlock
     ReleaseInternal(Thread.GetThreadFromThreadId(threadId), threadId);
 }
 public void Acquire(int threadId)
 {
     AcquireInternal(Thread.GetThreadFromThreadId(threadId), threadId);
 }