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); } }
public void Dispose() { if (_md != null) { _md.Unlock(); if (_autoDispose) { _md.Dispose(); } _md = null; } }
public Section(MutexData md, bool autoDispose = false) { _md = md; _autoDispose = autoDispose; _md.WaitForever(); }