Пример #1
0
        /// <summary>
        /// 添加到执行队列
        /// </summary>
        /// <param name="strModGUID"></param>
        /// <returns></returns>
        public bool AddRq(string strModGUID)
        {
            if (string.IsNullOrEmpty(strModGUID))
            {
                return(false);
            }
            RQueue rq = RQueue.getInstance();

            rq.Enqueue(strModGUID);
            return(true);
        }
Пример #2
0
 public static RQueue getInstance()
 {
     if (_instance == null)
     {
         lock (lockHelper)
         {
             if (_instance == null)
             {
                 _instance = new RQueue();
             }
         }
     }
     return(_instance);
 }