12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #include "base/CCAsyncTaskPool.h"
- NS_CC_BEGIN
- AsyncTaskPool* AsyncTaskPool::s_asyncTaskPool = nullptr;
- AsyncTaskPool* AsyncTaskPool::getInstance()
- {
- if (s_asyncTaskPool == nullptr)
- {
- s_asyncTaskPool = new (std::nothrow) AsyncTaskPool();
- }
- return s_asyncTaskPool;
- }
- void AsyncTaskPool::destroyInstance()
- {
- delete s_asyncTaskPool;
- s_asyncTaskPool = nullptr;
- }
- AsyncTaskPool::AsyncTaskPool()
- {
- }
- AsyncTaskPool::~AsyncTaskPool()
- {
- }
- NS_CC_END
|