System.IO.KqueueMonitor.Stop C# (CSharp) Méthode

Stop() public méthode

public Stop ( ) : void
Résultat void
		public void Stop ()
		{
			lock (stateLock) {
				if (!started)
					return;
					
				requestStop = true;

				if (inDispatch)
					return;
				if (!thread.Join (2000))
					thread.Abort ();

				requestStop = false;
				started = false;

				if (exc != null)
					throw exc;
			}
		}

Usage Example

Exemple #1
0
		public void StopDispatching (FileSystemWatcher fsw)
		{
			KqueueMonitor monitor = (KqueueMonitor)watches [fsw];
			if (monitor == null)
				return;

			monitor.Stop ();
		}
All Usage Examples Of System.IO.KqueueMonitor::Stop