Mono.Debugger.Backend.DebuggerEventQueue.Signal C# (CSharp) Method

Signal() public method

public Signal ( ) : void
return void
        public void Signal()
        {
            Debug ("{0} signal {1}", CurrentThread, Name);
            Monitor.Pulse (this);
        }

Usage Example

Example #1
0
        internal object SendCommand(SingleSteppingEngine sse, TargetAccessDelegate target,
                                    object user_data)
        {
            Command command = new Command(sse, target, user_data);

            if (!engine_event.WaitOne(WaitTimeout, false))
            {
                throw new TargetException(TargetError.NotStopped);
            }

            event_queue.Lock();
            engine_event.Reset();

            current_command = command;

            event_queue.Signal();
            event_queue.Unlock();

            engine_event.WaitOne();

            if (command.Result is Exception)
            {
                throw (Exception)command.Result;
            }
            else
            {
                return(command.Result);
            }
        }