private void CreateCallBackThreadQueue() { _callbackQueue = new SynQueue <NoReturnAndParamDelegate>(); _callBackProcessingThread = new Thread(InstCtrlCallbackThread); _callBackProcessingThread.IsBackground = true; _callBackProcessingThread.Start(); }
//private bool ExecFlag = true; public RspQueue(CancellationTokenSource cts, BACKENDTYPE backEnd) { _BackEnd = BACKENDTYPE.CTP; _ResponseQueue = new SynQueue <object>(); _LockObject = new object(); _RspTask = Task.Factory.StartNew(() => ResponseThreadProc(cts.Token), cts.Token); //RspThread = new Thread(ResponseThreadProc); //RspThread.IsBackground = true; //RspThread.Start(); }
//private bool ExecFlag = true; //private Dictionary<CodeKey, ReqCodeValue> reqCodeInfoDict; public ExecQueue(CancellationTokenSource cts) { _CmdQueue = new SynQueue <RequestContent>(); _OrdQueue = new SynQueue <RequestContent>(); _LockObject = new object(); //reqCodeInfoDict = new Dictionary<CodeKey, ReqCodeValue>(); _CmdTask = Task.Factory.StartNew(() => CommandThreadProc(cts.Token), cts.Token); //CmdThread = new Task(CommandThreadProc); //CmdThread.IsBackground = true; //CmdThread.Start(); _OrdTask = Task.Factory.StartNew(() => OrderThreadProc(cts.Token), cts.Token); //OrdThread = new Thread(OrderThreadProc); //OrdThread.IsBackground = true; //OrdThread.Start(); }