Why am I getting this result with my attempt to implement a basic spin-lock in C#?

前端 未结 0 1578
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 03:03

Attempt:

public interface ISemaphore
{
    void Aquire();

    void Release();
}

public class SpinlockSemaphore : ISemaphore
{
    private int _cur;
    priv         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题