예제 #1
0
        public Mutector(string name)
        {
            string ident = COMMON_ID + "_" + SecurityTools.GetSHA512_128String(StringTools.ENCODING_SJIS.GetBytes(name));

            for (int index = 0; index < (int)M_INDEX.Max; index++)
            {
                _mtxs[index] = new MutexData(ident + "_" + index);
            }
        }
예제 #2
0
            public void Dispose()
            {
                if (_md != null)
                {
                    _md.Unlock();

                    if (_autoDispose)
                    {
                        _md.Dispose();
                    }

                    _md = null;
                }
            }
예제 #3
0
 public Section(MutexData md, bool autoDispose = false)
 {
     _md          = md;
     _autoDispose = autoDispose;
     _md.WaitForever();
 }