make AsyncTaskManager::_global_ptr an ordinary pointer to prevent static init issues with PandaFramework

This commit is contained in:
rdb 2012-08-15 10:55:40 +00:00
parent b686b94385
commit 33d494d0f4
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@
#include "config_event.h"
#include <algorithm>
PT(AsyncTaskManager) AsyncTaskManager::_global_ptr;
AsyncTaskManager *AsyncTaskManager::_global_ptr = NULL;
TypeHandle AsyncTaskManager::_type_handle;
@ -731,4 +731,5 @@ make_global_ptr() {
nassertv(_global_ptr == (AsyncTaskManager *)NULL);
_global_ptr = new AsyncTaskManager("TaskManager");
_global_ptr->ref();
}

View File

@ -133,7 +133,7 @@ protected:
ConditionVarFull _frame_cvar; // Signalled when the clock ticks.
static PT(AsyncTaskManager) _global_ptr;
static AsyncTaskManager* _global_ptr;
public:
static TypeHandle get_class_type() {