int PlayerManager::GetCurrentPlayers(PlayerList& outList) { //DONE //TODO: mLock을 read모드로 접근해서 outList에 현재 플레이어들의 정보를 담고 total에는 현재 플레이어의 총 수를 반환. FastSpinlockGuard nonExclusive(mLock, false); int total = 0; for (auto it = mPlayerMap.begin(); it != mPlayerMap.end(); it++) ///# ++it로 바꿔라 그 이유는 임시객체 복사생성되기 때문 { ++total; outList.emplace_back(it->second); } return total; }