Ejemplo n.º 1
0
 internal bool GetResult(out int num, bool stalling = false)
 {
     if (!stalling)
     {
         return(RC.GetData(m_query, AsynchronousFlags.DoNotFlush, out num));
     }
     else
     {
         while (!RC.GetData(m_query, AsynchronousFlags.None, out num))
         {
             System.Threading.Thread.Sleep(1);
         }
         return(true);
     }
 }
Ejemplo n.º 2
0
        internal long GetResult(bool stalling = false)
        {
            long num;

            if (!stalling)
            {
                if (!RC.GetData(m_query, AsynchronousFlags.DoNotFlush, out num))
                {
                    num = -1;
                }
            }
            else
            {
                while (!RC.GetData(m_query, AsynchronousFlags.None, out num))
                {
                    System.Threading.Thread.Sleep(1);
                }
            }
            Running = Ignore = false;
            return(num);
        }