示例#1
0
        public static IDisposable GetLock_internal(string x)
        {
            CriticalSection _cs = CriticalSection.Create(x);

            _cs.EnterLock();

            GlobalCriticalSection gs = new GlobalCriticalSection();

            gs.cs = _cs;
            return(gs);
        }
示例#2
0
        public static IDisposable GetLock_internal(string x)
        {
            CriticalSection _cs = CriticalSection.Create(x);
            _cs.EnterLock();

            GlobalCriticalSection gs = new GlobalCriticalSection();
            gs.cs = _cs;
            return gs;
        }