dWorld.Foundation.Utility.Threading.dLightWeightProcessBase.internal_IncrementRegister C# (CSharp) Method

internal_IncrementRegister() private method

private internal_IncrementRegister ( ) : void
return void
		internal void internal_IncrementRegister ()
		{
			Interlocked.Increment (ref m_RegisterRequestCount);
		}

Usage Example

コード例 #1
0
		public static void AddService (dLightWeightProcessBase _Process)
		{
			if (m_Processes != null) {
				if (_Process != null) {
					m_Processes.Add (_Process);
					_Process.internal_IncrementRegister ();
					Command command = new Command (eCommandType.Register, _Process);
					ThreadProcess.EnqueueCommand (command);
					command.Event.WaitOne ();
				}
			} else {
				throw new Exception ("dLightWeightProcessThread has not been initialised, please initialise it through the Foundation Initialisation System.");
			}
		}