Is there any internal thread variables/states I can set to request
stops? or I need to make my own global variables?
IE
-----------------------------
Thread myThrd = new Thread(new ParameterizedThreadStart(Func));
myThrd.Start(objParams);
*do stuff*
myThrd.ThreadState = ThreadState.SuspendRequested;
*do more stuff*
myThrd.ThreadState = ThreadState.Running
*do more stuff*
myThrd.ThreadState = ThreadState.AbortRequested
----------------------------- (Would be Ideal)
Then have myThrd just keep checking its state if the
"SuspenedRequested" is active (or AbortRequested) at certain points?
I can't set ThreadState though.
I can't find any "myThrd.RequestSuspened()" accessors either.
Is there better way than using global variables? (IE built in ones for
threads?) Thanks
NB