Waiting thread

  • Thread starter Thread starter Kimmo Laine
  • Start date Start date
K

Kimmo Laine

Hello,

how can i wait thread to close in C# - i need something like the Win32 API
WaitForSingleObject.

Thread t;
// Start t

// Somewhere else...
// Order t to close
// ...

// Wait t to close 250 msec
UnknownFunctionName( t, 250 );

// Thread was closed or time ended


thx

Kimmo Laine
 
Back
Top