Exemple #1
0
 v8::Handle<v8::Value> ThreadReturnData(V8Scope* scope, const v8::Arguments& args) {
     BSONObj data = thisConfig(scope, args)->returnData();
     return scope->mongoToV8Element(data.firstElement(), true);
 }
Exemple #2
0
 Handle< Value > ThreadStart( V8Scope* scope, const Arguments &args ) {
     thisConfig( scope, args )->start();
     return v8::Undefined();
 }
Exemple #3
0
 v8::Handle<v8::Value> ThreadJoin(V8Scope* scope, const v8::Arguments& args) {
     thisConfig(scope, args)->join();
     return v8::Undefined();
 }
Exemple #4
0
 Handle< Value > ThreadReturnData( const Arguments &args ) {
     HandleScope handle_scope;
     return handle_scope.Close( thisConfig( args )->returnData() );
 }
Exemple #5
0
 Handle< Value > ThreadJoin( const Arguments &args ) {
     thisConfig( args )->join();
     return v8::Undefined();
 }
Exemple #6
0
 Handle< Value > ThreadStart( const Arguments &args ) {
     thisConfig( args )->start();
     return v8::Undefined();
 }
Exemple #7
0
 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);
 }
Exemple #8
0
 v8::Local<v8::Value> ThreadJoin(V8Scope* scope,
                                 const v8::FunctionCallbackInfo<v8::Value>& args) {
     thisConfig(scope, args)->join();
     return v8::Undefined(scope->getIsolate());
 }