static internal void PerformWaitCallback(Object state)
{
_ThreadPoolWaitCallback helper = (_ThreadPoolWaitCallback)state;
BCLDebug.Assert(helper != null, "Null state passed to PerformWaitCallback!");
// call directly if it is an unsafe call OR EC flow is suppressed
if (helper._executionContext == null)
{
WaitCallback callback = helper._waitCallback;
callback(helper._state);
}
else
{
ExecutionContext.Run(helper._executionContext, _ccb, helper);
}
}
};