Revert "SERVER-695 don't destroy static global mutexes"

This reverts commit 714ec2fdc8.
This commit is contained in:
Aaron
2010-03-10 00:39:26 -08:00
parent 26b6ffe30a
commit eb7cde3e75
50 changed files with 153 additions and 204 deletions

View File

@@ -243,7 +243,7 @@ namespace mongo {
}
void done( const string& pool , Scope * s ){
scoped_lock lk( _mutex );
boostlock lk( _mutex );
list<Scope*> & l = _pools[pool];
if ( l.size() > 10 ){
delete s;
@@ -255,7 +255,7 @@ namespace mongo {
}
Scope * get( const string& pool ){
scoped_lock lk( _mutex );
boostlock lk( _mutex );
list<Scope*> & l = _pools[pool];
if ( l.size() == 0 )
return 0;
@@ -283,7 +283,7 @@ namespace mongo {
private:
PoolToScopes _pools;
mongo::mutex _mutex;
boost::mutex _mutex;
int _magic;
};