renamed a value.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-08-11 11:23:58 +08:00
parent 232590e9b7
commit 5d01bf9d1a
2 changed files with 4 additions and 6 deletions

View File

@ -107,8 +107,6 @@ void StringObjectMapTest()
{ {
cout<<"["<<key<<","<<(ui->GetSex()?"male":"female")<<","<<ui->GetAge()<<"]"<<endl; cout<<"["<<key<<","<<(ui->GetSex()?"male":"female")<<","<<ui->GetAge()<<"]"<<endl;
}); });
cout<<endl;
} }
int main(int,char **) int main(int,char **)

View File

@ -42,7 +42,7 @@ void StructPoolTest()
ShowUserInfoArray(pool.GetActiveArray()); ShowUserInfoArray(pool.GetActiveArray());
cout<<"idle count: "<<pool.GetInactiveCount()<<endl; cout<<"idle count: "<<pool.GetIdleCount()<<endl;
//取出所有闲置数据 //取出所有闲置数据
{ {
@ -97,7 +97,7 @@ void ObjectPoolTest()
ShowUserInfoArray(pool.GetActiveArray()); ShowUserInfoArray(pool.GetActiveArray());
cout<<"idle count: "<<pool.GetInactiveCount()<<endl; cout<<"idle count: "<<pool.GetIdleCount()<<endl;
//取出闲置列表中的一半数据 //取出闲置列表中的一半数据
{ {
@ -118,8 +118,8 @@ void ObjectPoolTest()
cout<<"clear active "<<pool.GetActiveCount()<<endl; cout<<"clear active "<<pool.GetActiveCount()<<endl;
pool.ClearActive(); pool.ClearActive();
cout<<"clear inactive "<<pool.GetInactiveCount()<<endl; cout<<"clear idle "<<pool.GetIdleCount()<<endl;
pool.ClearInactive(); pool.ClearIdle();
} }
} }