SERVER-512 prevent ugly boost assert on shell shutdown

This commit is contained in:
Aaron
2010-01-25 10:27:21 -08:00
parent 68b9522a09
commit 1664c3da4f
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ namespace mongo {
}
boost::thread_specific_ptr<SMScope> currentScope( dontDeleteScope );
boost::recursive_mutex smmutex;
boost::recursive_mutex &smmutex = *( new boost::recursive_mutex );
#define smlock recursive_boostlock ___lk( smmutex );
#define GETHOLDER(x,o) ((BSONHolder*)JS_GetPrivate( x , o ))