How to start a stopped thread

前端 未结 5 2051
孤城傲影
孤城傲影 2021-02-14 10:53

I create a new thread and start it from a main thread.

m_MyThread = new Thread(HandleMyThread);
m_MyThread.IsBackground = true;
m_MyThread.Start();

private void         


        
5条回答
  •  别跟我提以往
    2021-02-14 11:16

    Just make a new thread like you did when you initially created the thread. You might also want to pull that out into a method to avoid repeating yourself.

提交回复
热议问题