static private Send ( |
||
engine | The AD7Engine object that represents the DE. | |
exitCode | uint | The thread's exit code. |
thread | 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);
}
}