0
Answer

Stop current thread i stop all thread

Pavol

Pavol

11y
1.4k
1
Hello 
I need stop curent thread and dont stop all thread.
I use:
EventWaitHandle sm = new AutoResetEvent(false);

in current thread:
sm.WaitOne();

and thread:

sm.Set();

I use in current thread sm.WaitOne() so stop all thread. 
Is there a solution? I want to be sm.WaitOne() in current thread. Thanks.