v8::Handle<v8::Value> ThreadReturnData(V8Scope* scope, const v8::Arguments& args) { BSONObj data = thisConfig(scope, args)->returnData(); return scope->mongoToV8Element(data.firstElement(), true); }
Handle< Value > ThreadStart( V8Scope* scope, const Arguments &args ) { thisConfig( scope, args )->start(); return v8::Undefined(); }
v8::Handle<v8::Value> ThreadJoin(V8Scope* scope, const v8::Arguments& args) { thisConfig(scope, args)->join(); return v8::Undefined(); }
Handle< Value > ThreadReturnData( const Arguments &args ) { HandleScope handle_scope; return handle_scope.Close( thisConfig( args )->returnData() ); }
Handle< Value > ThreadJoin( const Arguments &args ) { thisConfig( args )->join(); return v8::Undefined(); }
Handle< Value > ThreadStart( const Arguments &args ) { thisConfig( args )->start(); return v8::Undefined(); }
v8::Local<v8::Value> ThreadReturnData(V8Scope* scope, const v8::FunctionCallbackInfo<v8::Value>& args) { BSONObj data = thisConfig(scope, args)->returnData(); return scope->mongoToV8Element(data.firstElement(), true); }
v8::Local<v8::Value> ThreadJoin(V8Scope* scope, const v8::FunctionCallbackInfo<v8::Value>& args) { thisConfig(scope, args)->join(); return v8::Undefined(scope->getIsolate()); }