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 Nectar(string name, int timeoutMillis = 5000) { string ident = COMMON_ID + "_" + SecurityTools.GetSHA512_128String(StringTools.ENCODING_SJIS.GetBytes(name)); _evData = new NamedEventData(ident + "_Data"); _evCtrl = new NamedEventData(ident + "_Ctrl"); _evSend = new NamedEventData(ident + "_Send"); _evRecv = new NamedEventData(ident + "_Recv"); _timeoutMillis = timeoutMillis; }