Mono.Debugger.Process.StartGlobalOperation C# (CSharp) Method

StartGlobalOperation() private method

private StartGlobalOperation ( ThreadingModel model, SingleSteppingEngine caller, OperationCommandResult operation ) : void
model ThreadingModel
caller Mono.Debugger.Backend.SingleSteppingEngine
operation OperationCommandResult
return void
        internal void StartGlobalOperation(ThreadingModel model, SingleSteppingEngine caller, OperationCommandResult operation)
        {
            if (!ThreadManager.InBackgroundThread)
                throw new InternalError ();

            if ((current_state != ProcessState.Stopped) && (current_state != ProcessState.SingleThreaded))
                throw new TargetException (TargetError.NotStopped);

            lock (this) {
                current_state = ProcessState.Running;
                stopped_event.Reset ();
                current_operation = operation;
            }

            ResumeUserThreads (model, caller);
        }