| 376 | } |
| 377 | |
| 378 | Assets::~Assets() { |
| 379 | m_stopThreads = true; |
| 380 | |
| 381 | { |
| 382 | // Should lock associated mutex to prevent loss of wakeups, |
| 383 | MutexLocker locker(m_assetsMutex); |
| 384 | // Notify all worker threads to allow them to stop |
| 385 | m_assetsQueued.broadcast(); |
| 386 | } |
| 387 | |
| 388 | // Join them all |
| 389 | m_workerThreads.clear(); |
| 390 | } |
| 391 | |
| 392 | void Assets::hotReload() const { |
| 393 | MutexLocker assetsLocker(m_assetsMutex); |