+ oops, corrected:)
This commit is contained in:
parent
9a9e5fb2e3
commit
2c5f723344
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ public:
|
||||||
mutex::scoped_lock lock(mutex_);
|
mutex::scoped_lock lock(mutex_);
|
||||||
#endif
|
#endif
|
||||||
typename ContType::iterator itr=unusedPool_.begin();
|
typename ContType::iterator itr=unusedPool_.begin();
|
||||||
for ( ;itr!=unusedPool_.end(); ++itr)
|
while ( itr!=unusedPool_.end())
|
||||||
{
|
{
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
std::clog<<"borrow "<<(*itr).get()<<"\n";
|
std::clog<<"borrow "<<(*itr).get()<<"\n";
|
||||||
|
@ -116,7 +116,7 @@ public:
|
||||||
#ifdef MAPNIK_DEBUG
|
#ifdef MAPNIK_DEBUG
|
||||||
std::clog<<"bad connection (erase)" << (*itr).get()<<"\n";
|
std::clog<<"bad connection (erase)" << (*itr).get()<<"\n";
|
||||||
#endif
|
#endif
|
||||||
unusedPool_.erase(itr);
|
itr=unusedPool_.erase(itr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (usedPool_.size() < maxSize_)
|
if (usedPool_.size() < maxSize_)
|
||||||
|
|
Loading…
Add table
Reference in a new issue