阅读背景:

处置时为什么Mutex不会被释放?

来源:互联网 

I have the following code:

我有以下代码:

using (Mutex mut = new Mutex(false, MUTEX_NAME))
{
    if (mut.WaitOne(new TimeSpan(0, 0, 30)))
    {
       // Some code that deals with a specific TCP port
       // Don't want this to run at the same time in another process
    }
}
using (M



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: