dWorld.Foundation.Utility.Threading.dLightWeightProcessThread.RemoveService C# (CSharp) Method

RemoveService() public static method

public static RemoveService ( dLightWeightProcessBase _Process ) : void
_Process dLightWeightProcessBase
return void
		public static void RemoveService (dLightWeightProcessBase _Process)
		{
			if (m_Processes != null) {
				if (m_Processes.Remove (_Process)) {
					_Process.internal_DecrementRegister ();
					Command command = new Command (eCommandType.UnRegister, _Process);
					ThreadProcess.EnqueueCommand (command);
					command.Event.WaitOne ();
				}
			}
		}