Пример #1
0
        public void Push(SInObj Obj_)
        {
            _Objects.Add(new _SObject(_ObjectCounter, Obj_.ObjectName));

            try
            {
                var pBuf = _InObjects.GetPushBuf();
                pBuf.ServerName = Obj_.ServerName;
                pBuf.ObjectName = Obj_.ObjectName;
                pBuf.Index      = _ObjectCounter;
                _InObjects.Push();
            }
            catch
            {
                _Objects.RemoveAt(_Objects.Count - 1);
            }

            ++_ObjectCounter;
        }
Пример #2
0
 public void Push(SInObj Obj_)
 {
     ++_CurThreadNum;
     _CurThreadNum %= _Sessions.Count;
     _Sessions[_CurThreadNum].Push(Obj_);
 }