Beispiel #1
0
        private void do_snoop(bool start)
        {
            if (snooped_all_rows_)
            {
                // at this point, we know all rows have been snooped, so there's no point in ever snooping again
                return;
            }

            if (start)
            {
                finished_ = false;
                // ... just in case
                stop_snoop_.keep_running = false;
                // we're starting a new snoop
                stop_snoop_ = new bool_box();
                Task.Run(() => on_snoop(this, ref stop_snoop_.keep_running));
            }
            else
            {
                // force stop snooping - user has collapsed us
                stop_snoop_.keep_running = false;
            }
        }
Beispiel #2
0
        private void do_snoop(bool start) {
            if (snooped_all_rows_)
                // at this point, we know all rows have been snooped, so there's no point in ever snooping again
                return;

            if (start) {
                finished_ = false;
                // ... just in case
                stop_snoop_.keep_running = false;
                // we're starting a new snoop
                stop_snoop_ = new bool_box();
                Task.Run(() => on_snoop(this, ref stop_snoop_.keep_running));
            } else
                // force stop snooping - user has collapsed us
                stop_snoop_.keep_running = false;
        }