==============================================================================
| 120 | |
| 121 | //============================================================================== |
| 122 | void Thread::startThread() |
| 123 | { |
| 124 | const ScopedLock sl (startStopLock); |
| 125 | |
| 126 | shouldExit = 0; |
| 127 | |
| 128 | if (threadHandle.get() == nullptr) |
| 129 | { |
| 130 | launchThread(); |
| 131 | setThreadPriority (threadHandle.get(), threadPriority); |
| 132 | startSuspensionEvent.signal(); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void Thread::startThread (int priority) |
| 137 | { |