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

AsyncAddService() public static method

public static AsyncAddService ( dLightWeightProcessBase _Process ) : void
_Process dLightWeightProcessBase
return void
		public static void AsyncAddService (dLightWeightProcessBase _Process)
		{
			if (m_Processes != null) {
				if (_Process != null) {
					m_Processes.Add (_Process);
					_Process.internal_IncrementRegister ();
					ThreadProcess.EnqueueCommand (new Command (eCommandType.Register, _Process));
				}
			} else {
				throw new Exception ("dLightWeightProcessThread has not been initialised, please initialise it through the Foundation Initialisation System.");
			}
		}