Confirm fn_02497 (CAsyncWorkMgr::Initialize)
Batch #13095 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_02497 CAsyncWorkMgr::Initialize: byte-identical (already on main) Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
72afe5a4a6
commit
68cabd0b7c
1 changed files with 5 additions and 5 deletions
|
|
@ -21,15 +21,15 @@
|
|||
CAsyncWorkMgr* g_asyncWorkMgr;
|
||||
|
||||
// INLINED
|
||||
CAsyncWorkMgr::CAsyncWorkMgr(std::uint32_t workers) : NAsyncWorkMgr(workers), m_ready(false), m_pools(nullptr) {
|
||||
CAsyncWorkMgr::CAsyncWorkMgr(std::uint32_t workers) : NAsyncWorkMgr(workers), m_pools(nullptr) {
|
||||
this->m_ready = false;
|
||||
this->m_pools = new (std::nothrow) CAsyncWorkRecycleObjectPoolMgr;
|
||||
|
||||
if (this->m_pools) {
|
||||
if (this->m_pools->Ready()) {
|
||||
this->m_ready = true;
|
||||
} else {
|
||||
if (!this->m_pools->Ready()) {
|
||||
delete this->m_pools;
|
||||
this->m_pools = nullptr;
|
||||
} else {
|
||||
this->m_ready = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue