Waiting thread

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Resources 1
Waitable Timer in C# ? 11
Problem with Thread 1
a confusing problem relative to C# thread! 4
Help with thread 1
MSMQ as timer 1
Waking a suspended computer. 1
C# and destructors 10

Top