renamed a value.
This commit is contained in:
parent
232590e9b7
commit
5d01bf9d1a
@ -107,8 +107,6 @@ void StringObjectMapTest()
|
||||
{
|
||||
cout<<"["<<key<<","<<(ui->GetSex()?"male":"female")<<","<<ui->GetAge()<<"]"<<endl;
|
||||
});
|
||||
|
||||
cout<<endl;
|
||||
}
|
||||
|
||||
int main(int,char **)
|
||||
|
@ -42,7 +42,7 @@ void StructPoolTest()
|
||||
|
||||
ShowUserInfoArray(pool.GetActiveArray());
|
||||
|
||||
cout<<"idle count: "<<pool.GetInactiveCount()<<endl;
|
||||
cout<<"idle count: "<<pool.GetIdleCount()<<endl;
|
||||
|
||||
//取出所有闲置数据
|
||||
{
|
||||
@ -97,7 +97,7 @@ void ObjectPoolTest()
|
||||
|
||||
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;
|
||||
pool.ClearActive();
|
||||
|
||||
cout<<"clear inactive "<<pool.GetInactiveCount()<<endl;
|
||||
pool.ClearInactive();
|
||||
cout<<"clear idle "<<pool.GetIdleCount()<<endl;
|
||||
pool.ClearIdle();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user