IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher Class Reference

SimpleWorkItemDispatcher handles execution of WorkItems by directly executing them. It is provided so that a dispatcher is always available in the context, thereby simplifying the code needed to run child tests. More...

+ Inheritance diagram for NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher:
+ Collaboration diagram for NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher:

Public Member Functions

void Dispatch (WorkItem work)
 Dispatch a single work item for execution. The first work item dispatched is saved as the top-level work item and a thread is created on which to run it. Subsequent calls come from the top level item or its descendants on the proper thread. More...
 
void CancelRun ()
 Cancel the ongoing run completely. If no run is in process, the call has no effect. More...
 

Private Member Functions

void RunnerThreadProc ()
 

Private Attributes

WorkItem _topLevelWorkItem
 
Thread _runnerThread
 

Detailed Description

SimpleWorkItemDispatcher handles execution of WorkItems by directly executing them. It is provided so that a dispatcher is always available in the context, thereby simplifying the code needed to run child tests.

Member Function Documentation

void NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher.Dispatch ( WorkItem  work)
inline

Dispatch a single work item for execution. The first work item dispatched is saved as the top-level work item and a thread is created on which to run it. Subsequent calls come from the top level item or its descendants on the proper thread.

Parameters
workThe item to dispatch

Implements NUnit.Framework.Internal.Execution.IWorkItemDispatcher.

References NUnit.Framework.Internal.Execution.WorkItem.Execute().

void NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher.RunnerThreadProc ( )
inlineprivate
void NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher.CancelRun ( )
inline

Cancel the ongoing run completely. If no run is in process, the call has no effect.

Implements NUnit.Framework.Internal.Execution.IWorkItemDispatcher.

References NUnit.Framework.Internal.ThreadUtility.Kill().

Member Data Documentation

WorkItem NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher._topLevelWorkItem
private
Thread NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher._runnerThread
private

The documentation for this class was generated from the following file: