mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
16 lines
396 B
C++
16 lines
396 B
C++
|
|
InstanceType* InstanceType::sHeadInstance = NULL;
|
|
bool InstanceType::sMultiThreaded = false;
|
|
|
|
std::vector<InstanceType::InstanceCount> InstanceType::getInstanceCounts(int min)
|
|
{
|
|
std::vector<InstanceCount> ret;
|
|
for (InstanceType* i = sHeadInstance; i != NULL; i = i->mNextInstance)
|
|
{
|
|
int c = i->getCount();
|
|
if (c >= min)
|
|
ret.push_back(InstanceCount(i->getName(), c));
|
|
}
|
|
return ret;
|
|
}
|