Add a hasInstance to ResourceManager
This is needed to allow order-independent shutdown, due to the dumb ownership behaviour for providers.
This commit is contained in:
parent
fba00d6894
commit
b7308fa3ad
@ -49,6 +49,11 @@ ResourceManager* ResourceManager::instance()
|
||||
return static_manager;
|
||||
}
|
||||
|
||||
bool ResourceManager::haveInstance()
|
||||
{
|
||||
return static_manager != nullptr;
|
||||
}
|
||||
|
||||
ResourceManager::~ResourceManager()
|
||||
{
|
||||
assert(this == static_manager);
|
||||
|
@ -47,6 +47,8 @@ public:
|
||||
|
||||
static ResourceManager* instance();
|
||||
|
||||
static bool haveInstance();
|
||||
|
||||
static void reset();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user