C# Class MBC.Core.Controllers.ThreadTimeoutAborter

Times a running thread and aborts it if it exceeds a timeout value
Exibir arquivo Open project: aiclub/Mohawk_Battleship Class Usage Examples

Public Methods

Method Description
MonBegin ( ) : void

Starts the timer

MonEnd ( ) : void

Ends the timer and prevents the Thread from aborting.

ThreadTimeoutAborter ( int time ) : System

Initialization

Private Methods

Method Description
ThreadTimeout ( object stateObject ) : void

Stops the timer and aborts the thread.

Method Details

MonBegin() public method

Starts the timer
public MonBegin ( ) : void
return void

MonEnd() public method

Ends the timer and prevents the Thread from aborting.
public MonEnd ( ) : void
return void

ThreadTimeoutAborter() public method

Initialization
public ThreadTimeoutAborter ( int time ) : System
time int The timeout value
return System