# HG changeset patch # User Sara # Date 1392499069 28800 # Node ID 7eb1a37c12daa751b870634ec257873f4449caca # Parent 77d9e57697b1e46a053f96d965391ac2c4d3d720 the two parallel threads with two different isolates diff -r 77d9e57697b1 -r 7eb1a37c12da V8_tests/Two_parallel_threads_with_Two_different_Isolate/Two_threads_with_different_Isolates.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/V8_tests/Two_parallel_threads_with_Two_different_Isolate/Two_threads_with_different_Isolates.cpp Sat Feb 15 13:17:49 2014 -0800 @@ -0,0 +1,63 @@ +#include +#include +using namespace v8; +void* threadFunction(void*){ +Isolate* isolate1 = Isolate::New(); + if(isolate1 == NULL){ + printf("Error1"); + return 0; +} +//Locker locker1(isolate1); +//isolate1->Enter(); +Isolate::Scope isolate_scope1(isolate1); +HandleScope handle_scope1(isolate1); +Handle context1 = Context::New(isolate1); + Context::Scope context_scope1(context1); + Handle source1 = String::NewFromUtf8(isolate1, "'Hi' + ', Sara'"); + Handle