public static IDisposable GetLock_internal(string x) { CriticalSection _cs = CriticalSection.Create(x); _cs.EnterLock(); GlobalCriticalSection gs = new GlobalCriticalSection(); gs.cs = _cs; return(gs); }
public static IDisposable GetLock_internal(string x) { CriticalSection _cs = CriticalSection.Create(x); _cs.EnterLock(); GlobalCriticalSection gs = new GlobalCriticalSection(); gs.cs = _cs; return gs; }