J
Julia
Hi,
I have a server which span two threads and I want to be able to signal the
threads to stop
in order that my server will shut down properly
in the old days of winapi I did it by using a named event created by the
server,
a call to WaitForSingleEvent in each thread loop with the minimum time out
possible
(if the event was signaled the thread should exit the loop)
and a wait on the threads handle to detect when they did stop
how can I achieve the same in C#?
thanks in advance
I have a server which span two threads and I want to be able to signal the
threads to stop
in order that my server will shut down properly
in the old days of winapi I did it by using a named event created by the
server,
a call to WaitForSingleEvent in each thread loop with the minimum time out
possible
(if the event was signaled the thread should exit the loop)
and a wait on the threads handle to detect when they did stop
how can I achieve the same in C#?
thanks in advance