class MyMutex
{
private static AutoResetEvent _event = new AutoResetEvent(true);
public void WaitOne()
{
_event.WaitOne();
}
public void ReleaseMutex()
{
_event.Set();
return;
}
}