| 43 | } |
| 44 | |
| 45 | void Thread::Start() |
| 46 | { |
| 47 | // If we've already been started ignore subsequent attempts |
| 48 | // to start this thread. |
| 49 | if (m_Started) |
| 50 | { |
| 51 | return ; |
| 52 | } |
| 53 | |
| 54 | m_Stopped = false; |
| 55 | m_Started = true ; |
| 56 | // This creates a new thread and calls our static start function which in |
| 57 | // turn calls back to the "Run" method of this class, so the user of the thread |
| 58 | // has a nice object wrapped in a class to work with for their thread. |
| 59 | BeginThread(ThreadStartFunction, this) ; |
| 60 | } |
| 61 | |
| 62 | void Thread::Stop(bool waitTillStopped) |
| 63 | { |
no outgoing calls