看板
[ C_Sharp ]
討論串[問題] Thread 與 Class 一問...
共 7 篇文章
內容預覽:
Server m_Server ;. Boolean IsStop ;. void threadHandle() {. while (IsStop) {. m_Server.doListen() ;. }. }. void Stop() {. IsStop = True ;. m_Server.st
(還有131個字)
內容預覽:
謝謝大大的指教... 我在這方面的實作上碰到了盲點.... 如同大大所言, 我在這個包含了 Thread 的 class 裡寫了個 public 的 bool IsStop;. 然後在 DoThing 的 method 裡寫的就是 while(!IsStop) { ... }. 然後這個 Threa
(還有265個字)