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

Stop() private method

private Stop ( ) : void
return void
        internal void Stop()
        {
            main_thread.Invoke (delegate {
                current_state = ProcessState.Stopping;

                SuspendUserThreads (ThreadingModel.Process, null);
                current_state = ProcessState.Stopped;
                if (current_operation != null) {
                    current_operation.Completed ();
                    current_operation = null;
                }
                stopped_event.Set ();
                return null;
            }, null);
        }

Usage Example

Example #1
0
 void IOperationHost.Abort()
 {
     Process.Stop();
 }