C# Class MBC.Core.Controllers.ThreadTimeoutAborter

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

Méthodes publiques

Méthode Description
MonBegin ( ) : void

Starts the timer

MonEnd ( ) : void

Ends the timer and prevents the Thread from aborting.

ThreadTimeoutAborter ( int time ) : System

Initialization

Private Methods

Méthode Description
ThreadTimeout ( object stateObject ) : void

Stops the timer and aborts the thread.

Method Details

MonBegin() public méthode

Starts the timer
public MonBegin ( ) : void
Résultat void

MonEnd() public méthode

Ends the timer and prevents the Thread from aborting.
public MonEnd ( ) : void
Résultat void

ThreadTimeoutAborter() public méthode

Initialization
public ThreadTimeoutAborter ( int time ) : System
time int The timeout value
Résultat System