public void disconnect() { ReqClass req = new ReqClass(); req.type = ReqClass.RequestType.DISCONNECT; reqListMutex.WaitOne(); reqList.Add(req); reqListMutex.ReleaseMutex(); }
public void delModePidReq(String mode, String pid) { ReqClass req = new ReqClass(); req.type = ReqClass.RequestType.MODE_PID; req.mode = mode; req.pid = pid; req.repeat = true; reqListMutex.WaitOne(); reqRmList.Add(req); reqListMutex.ReleaseMutex(); }