VSNDK.DebugEngine.AD7ThreadDestroyEvent.Send C# (CSharp) Method

Send() static private method

Sends the event.
static private Send ( AD7Engine engine, uint exitCode, AD7Thread thread ) : void
engine AD7Engine The AD7Engine object that represents the DE.
exitCode uint The thread's exit code.
thread AD7Thread The AD7Thread object that represents the thread.
return void
        internal static void Send(AD7Engine engine, uint exitCode, AD7Thread thread)
        {
            var eventObject = new AD7ThreadDestroyEvent(exitCode);
            if (thread == null)
            {
                foreach (AD7Thread t in engine.thread)
                {
                    engine.Callback.Send(eventObject, IID, t);
                }
                engine._currentThreadIndex = -1;
            }
            else
            {
                engine.Callback.Send(eventObject, IID, thread);
            }
        }