0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00
This commit is contained in:
Aaron 2009-03-06 13:44:38 -05:00
parent 8730dc9d02
commit 9b3af26cbe

View File

@ -270,6 +270,8 @@ private:
JSThread( JSThreadConfig &config ) : config_( config ) {}
void operator()() {
Locker l;
// Context scope and handle scope held in thread specific storage,
// so need to configure for each thread.
Context::Scope context_scope( baseContext_ );
HandleScope handle_scope;
boost::scoped_array< Persistent< Value > > argv( new Persistent< Value >[ config_.args_.size() ] );