예제 #1
0
파일: Pipe.cs 프로젝트: wxl-007/ShadowDota
 /// <summary>
 /// Remove unfinished parts of the outbound message from the pipe.
 /// </summary>
 public void Rollback()
 {
     //  Remove incomplete message from the outbound pipe.
     if (m_outboundPipe != null)
     {
         var msg = new Msg();
         while (m_outboundPipe.Unwrite(ref msg))
         {
             Debug.Assert(msg.HasMore);
             msg.Close();
         }
     }
 }
예제 #2
0
        /// <summary> Remove unfinished parts of the outbound message from the pipe. </summary>
        public void Rollback()
        {
            //  Remove incomplete message from the outbound pipe.
            Msg msg = new Msg();

            if (m_outboundPipe != null)
            {
                while (m_outboundPipe.Unwrite(ref msg))
                {
                    Debug.Assert((msg.Flags & MsgFlags.More) != 0);
                    msg.Close();
                }
            }
        }