MCPcopy Create free account
hub / github.com/axmolengine/axmol / waitForQuit

Method waitForQuit

core/renderer/TextureCache.cpp:745–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void TextureCache::waitForQuit()
746{
747 // notify sub thread to quick
748 std::unique_lock<std::mutex> ul(_requestMutex);
749 _needQuit = true;
750 _sleepCondition.notify_one();
751 ul.unlock();
752 if (_loadingThread)
753 _loadingThread->join();
754
755 for (AsyncStruct* s : _asyncStructQueue)
756 delete s;
757
758 _asyncStructQueue.clear();
759 _requestQueue.clear();
760}
761
762std::string TextureCache::getCachedTextureInfo() const
763{

Callers 1

destroyTextureCacheMethod · 0.80

Calls 3

joinMethod · 0.80
unlockMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected