MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ~Assets

Method ~Assets

source/base/StarAssets.cpp:378–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378Assets::~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
392void Assets::hotReload() const {
393 MutexLocker assetsLocker(m_assetsMutex);

Callers

nothing calls this directly

Calls 2

broadcastMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected