| 149 | } |
| 150 | |
| 151 | void setPriority(Priority newPriority) { |
| 152 | mutex.lock(); |
| 153 | assert(state == State::Stopped); |
| 154 | priority = newPriority; |
| 155 | mutex.unlock(); |
| 156 | } |
| 157 | |
| 158 | void setStateCallback(StateCallback callback, void* callbackContext = nullptr) { |
| 159 | mutex.lock(); |
no test coverage detected