mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
fix shutdown error some more
This commit is contained in:
parent
20a18992d0
commit
49a436f1b5
@ -37,6 +37,7 @@ TypeHandle AsyncTaskManager::_type_handle;
|
|||||||
AsyncTaskManager::
|
AsyncTaskManager::
|
||||||
AsyncTaskManager(const string &name) :
|
AsyncTaskManager(const string &name) :
|
||||||
Namable(name),
|
Namable(name),
|
||||||
|
_num_tasks(0),
|
||||||
_clock(ClockObject::get_global_clock()),
|
_clock(ClockObject::get_global_clock()),
|
||||||
_frame_cvar(_lock)
|
_frame_cvar(_lock)
|
||||||
{
|
{
|
||||||
@ -85,7 +86,19 @@ cleanup() {
|
|||||||
} else {
|
} else {
|
||||||
// If there isn't exactly one remaining task, there should be
|
// If there isn't exactly one remaining task, there should be
|
||||||
// none.
|
// none.
|
||||||
nassertv(_num_tasks == 0 && _tasks_by_name.empty());
|
#ifndef NDEBUG
|
||||||
|
nassertd(_num_tasks == 0 && _tasks_by_name.empty()) {
|
||||||
|
task_cat.error()
|
||||||
|
<< "_num_tasks = " << _num_tasks << " _tasks_by_name = " << _tasks_by_name.size() << "\n";
|
||||||
|
TasksByName::const_iterator tbni;
|
||||||
|
for (tbni = _tasks_by_name.begin();
|
||||||
|
tbni != _tasks_by_name.end();
|
||||||
|
++tbni) {
|
||||||
|
task_cat.error()
|
||||||
|
<< " " << *(*tbni) << "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // NDEBUG
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user