C# Class System.Threading.Tests.ThreadTestHelpers

Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
CheckedWait ( this wh ) : void
CreateGuardedThread ( Action &waitForThread, Action start ) : Thread
CreateGuardedThread ( Action &checkForThreadErrors, Action &waitForThread, Action start ) : Thread
CreateGuardedThread ( Action &checkForThreadErrors, Action &waitForThread, Action start ) : Thread
CreateGuardedThread ( Action &waitForThread, Action start ) : Thread
RunTestInBackgroundThread ( Action test ) : void
WaitForCondition ( Func condition ) : void
WaitForConditionWithCustomDelay ( Func condition, Action delay ) : void
WaitForConditionWithoutBlocking ( Func condition ) : void

Method Details

CheckedWait() public static method

public static CheckedWait ( this wh ) : void
wh this
return void

CreateGuardedThread() public static method

public static CreateGuardedThread ( Action &waitForThread, Action start ) : Thread
waitForThread Action
start Action
return Thread

CreateGuardedThread() public static method

public static CreateGuardedThread ( Action &checkForThreadErrors, Action &waitForThread, Action start ) : Thread
checkForThreadErrors Action
waitForThread Action
start Action
return Thread

CreateGuardedThread() public static method

public static CreateGuardedThread ( Action &checkForThreadErrors, Action &waitForThread, Action start ) : Thread
checkForThreadErrors Action
waitForThread Action
start Action
return Thread

CreateGuardedThread() public static method

public static CreateGuardedThread ( Action &waitForThread, Action start ) : Thread
waitForThread Action
start Action
return Thread

RunTestInBackgroundThread() public static method

public static RunTestInBackgroundThread ( Action test ) : void
test Action
return void

WaitForCondition() public static method

public static WaitForCondition ( Func condition ) : void
condition Func
return void

WaitForConditionWithCustomDelay() public static method

public static WaitForConditionWithCustomDelay ( Func condition, Action delay ) : void
condition Func
delay Action
return void

WaitForConditionWithoutBlocking() public static method

public static WaitForConditionWithoutBlocking ( Func condition ) : void
condition Func
return void