コード例 #1
0
        private void ThreadProc()
        {
            while (true)
            {
                Thread.Sleep(1);

                while (marketMonitorQueue.GetQueueLength() > 0)
                {
                    MarketValue value = marketMonitorQueue.DeQueueNew();
                    if (value == null)
                    {
                        continue;
                    }
                    MarketMonitor.Instance.Send(value);
                }
            }
        }
コード例 #2
0
        //类型 时间 价格  是否停牌 涨停价格 跌停价格  昨收价
        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);
        }
コード例 #3
0
        //类型 时间 价格  是否停牌 涨停价格 跌停价格  昨收价
        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);
        }