private void ThreadProc() { while (true) { Thread.Sleep(1); while (marketMonitorQueue.GetQueueLength() > 0) { MarketValue value = marketMonitorQueue.DeQueueNew(); if (value == null) { continue; } MarketMonitor.Instance.Send(value); } } }
//类型 时间 价格 是否停牌 涨停价格 跌停价格 昨收价 public static void EnQueueNew(String code, int Time, uint Match, int status , uint HighLimit, uint LowLimit, uint preClose,int type) { MarketValue v = new MarketValue(); v.Match=Match; if(status==66||status==68) { v.isStop = true; } else { v.isStop = false; } v.HighLimit = HighLimit; v.LowLimit = LowLimit; v.PreClose = preClose; v.Code = code; instance.Enqueue((object)v); }
//类型 时间 价格 是否停牌 涨停价格 跌停价格 昨收价 public static void EnQueueNew(String code, int Time, uint Match, int status, uint HighLimit, uint LowLimit, uint preClose, int type) { MarketValue v = new MarketValue(); v.Match = Match; if (status == 66 || status == 68) { v.isStop = true; } else { v.isStop = false; } v.HighLimit = HighLimit; v.LowLimit = LowLimit; v.PreClose = preClose; v.Code = code; instance.Enqueue((object)v); }