{"action":"created","issue":{"url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/53","repository_url":"https://api.github.com/repos/xk/node-threads-a-gogo","labels_url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/53/comments","events_url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/53/events","html_url":"https://github.com/xk/node-threads-a-gogo/issues/53","id":59318630,"number":53,"title":"node 0.12.x support","user":{"login":"sessionbean","id":10663095,"avatar_url":"https://avatars.githubusercontent.com/u/10663095?v=3","gravatar_id":"","url":"https://api.github.com/users/sessionbean","html_url":"https://github.com/sessionbean","followers_url":"https://api.github.com/users/sessionbean/followers","following_url":"https://api.github.com/users/sessionbean/following{/other_user}","gists_url":"https://api.github.com/users/sessionbean/gists{/gist_id}","starred_url":"https://api.github.com/users/sessionbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sessionbean/subscriptions","organizations_url":"https://api.github.com/users/sessionbean/orgs","repos_url":"https://api.github.com/users/sessionbean/repos","events_url":"https://api.github.com/users/sessionbean/events{/privacy}","received_events_url":"https://api.github.com/users/sessionbean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-02-28T01:43:14Z","updated_at":"2016-07-15T13:00:58Z","closed_at":null,"body":"Got some error\r\n (I'm not good at this, can you help?)\r\n\r\n/\r\n> threads_a_gogo@0.1.7 install /home/node/zgws/web_open/node_modules/threads_a_gogo\r\n> node-gyp rebuild\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\r\nmake: Entering directory `/home/node/zgws/web_open/node_modules/threads_a_gogo/build'\r\n  CXX(target) Release/obj.target/threads_a_gogo/src/threads_a_gogo.o\r\n../src/threads_a_gogo.cc:34:3: error: ‘uv_async_t’ does not name a type\r\n   uv_async_t async_watcher; //MUST be the first one\r\n   ^\r\n../src/threads_a_gogo.cc: In function ‘typeThread* isAThread(v8::Handle<v8::Object>)’:\r\n../src/threads_a_gogo.cc:130:39: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’\r\n       thread= (typeThread*) receiver->GetPointerFromInternalField(0);\r\n                                       ^\r\n../src/threads_a_gogo.cc: At global scope:\r\n../src/threads_a_gogo.cc:159:34: error: ‘Arguments’ does not name a type\r\n static Handle<Value> Puts (const Arguments &args) {\r\n                                  ^\r\n../src/threads_a_gogo.cc:159:45: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n static Handle<Value> Puts (const Arguments &args) {\r\n                                             ^\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> Puts(const int&)’:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n   V8_INLINE HandleScope() {}\r\n             ^\r\n../src/threads_a_gogo.cc:162:15: error: within this context\r\n   HandleScope scope;\r\n               ^\r\n../src/threads_a_gogo.cc:164:19: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’\r\n   while (i < args.Length()) {\r\n                   ^\r\n../src/threads_a_gogo.cc:165:35: error: invalid types ‘const int[int]’ for array subscript\r\n     String::Utf8Value c_str(args[i]);\r\n                                   ^\r\n../src/threads_a_gogo.cc:172:20: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\n   return Undefined();\r\n                    ^\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n   friend Handle<Primitive> Undefined(Isolate* isolate);\r\n                            ^\r\n../src/threads_a_gogo.cc: In function ‘void* aThread(void*)’:\r\n../src/threads_a_gogo.cc:190:34: error: no matching function for call to ‘v8::Isolate::SetData(typeThread*&)’\r\n   thread->isolate->SetData(thread);\r\n                                  ^\r\n../src/threads_a_gogo.cc:190:34: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:6642:6: note: void v8::Isolate::SetData(uint32_t, void*)\r\n void Isolate::SetData(uint32_t slot, void* data) {\r\n      ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:6642:6: note:   candidate expects 2 arguments, 1 provided\r\n../src/threads_a_gogo.cc:208:26: error: ‘struct typeThread’ has no member named ‘async_watcher’\r\n   uv_async_send(&thread->async_watcher);\r\n                          ^\r\n../src/threads_a_gogo.cc:208:39: error: ‘uv_async_send’ was not declared in this scope\r\n   uv_async_send(&thread->async_watcher);\r\n                                       ^\r\n../src/threads_a_gogo.cc: At global scope:\r\n../src/threads_a_gogo.cc:220:40: error: ‘Arguments’ does not name a type\r\n static Handle<Value> threadEmit (const Arguments &args);\r\n                                        ^\r\n../src/threads_a_gogo.cc:220:51: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n static Handle<Value> threadEmit (const Arguments &args);\r\n                                                   ^\r\n../src/threads_a_gogo.cc: In function ‘void eventLoop(typeThread*)’:\r\n../src/threads_a_gogo.cc:224:33: error: no matching function for call to ‘v8::Context::New()’\r\n   thread->context= Context::New();\r\n                                 ^\r\n../src/threads_a_gogo.cc:224:33: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:5263:25: note: static v8::Local<v8::Context> v8::Context::New(v8::Isolate*, v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)\r\n   static Local<Context> New(\r\n                         ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:5263:25: note:   candidate expects 4 arguments, 0 provided\r\n../src/threads_a_gogo.cc:225:18: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Context>’\r\n   thread->context->Enter();\r\n                  ^\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n   V8_INLINE HandleScope() {}\r\n             ^\r\n../src/threads_a_gogo.cc:228:17: error: within this context\r\n     HandleScope scope1;\r\n                 ^\r\n../src/threads_a_gogo.cc:230:42: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Context>’\r\n     Local<Object> global= thread->context->Global();\r\n                                          ^\r\n../src/threads_a_gogo.cc:231:17: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     global->Set(String::NewSymbol(\"puts\"), FunctionTemplate::New(Puts)->GetFunction());\r\n                 ^\r\n../src/threads_a_gogo.cc:231:70: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’\r\n     global->Set(String::NewSymbol(\"puts\"), FunctionTemplate::New(Puts)->GetFunction());\r\n                                                                      ^\r\n../src/threads_a_gogo.cc:231:70: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)\r\n   static Local<FunctionTemplate> New(\r\n                                  ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’\r\n../src/threads_a_gogo.cc:232:45: error: no matching function for call to ‘v8::Object::New()’\r\n     Local<Object> threadObject= Object::New();\r\n                                             ^\r\n../src/threads_a_gogo.cc:232:45: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)\r\n   static Local<Object> New(Isolate* isolate);\r\n                        ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:24: note:   candidate expects 1 argument, 0 provided\r\n../src/threads_a_gogo.cc:233:17: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     global->Set(String::NewSymbol(\"thread\"), threadObject);\r\n                 ^\r\n../src/threads_a_gogo.cc:235:23: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     threadObject->Set(String::NewSymbol(\"id\"), Number::New(thread->id));\r\n                       ^\r\n../src/threads_a_gogo.cc:235:70: error: no matching function for call to ‘v8::Number::New(long int&)’\r\n     threadObject->Set(String::NewSymbol(\"id\"), Number::New(thread->id));\r\n                                                                      ^\r\n../src/threads_a_gogo.cc:235:70: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)\r\n   static Local<Number> New(Isolate* isolate, double value);\r\n                        ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided\r\n../src/threads_a_gogo.cc:236:23: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     threadObject->Set(String::NewSymbol(\"emit\"), FunctionTemplate::New(threadEmit)->GetFunction());\r\n                       ^\r\n../src/threads_a_gogo.cc:236:82: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’\r\n     threadObject->Set(String::NewSymbol(\"emit\"), FunctionTemplate::New(threadEmit)->GetFunction());\r\n                                                                                  ^\r\n../src/threads_a_gogo.cc:236:82: note: candidate is:\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)\r\n   static Local<FunctionTemplate> New(\r\n                                  ^\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’\r\n../src/threads_a_gogo.cc:237:51: error: ‘New’ is not a member of ‘v8::String’\r\n     Local<Object> dispatchEvents= Script::Compile(String::New(kEvents_js))->Run()->ToObject()->CallAsFunction(threadObject, 0, NULL)->ToObject();\r\n                                                   ^\r\n../src/threads_a_gogo.cc:238:54: error: ‘New’ is not a member of ‘v8::String’\r\n     Local<Object> dispatchNextTicks= Script::Compile(String::New(kThread_nextTick_js))->Run()->ToObject();\r\n                                                      ^\r\n../src/threads_a_gogo.cc:239:56: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     Local<Array> _ntq= (v8::Array*) *threadObject->Get(String::NewSymbol(\"_ntq\"));\r\n                                                        ^\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n   V8_INLINE HandleScope() {}\r\n             ^\r\n../src/threads_a_gogo.cc:251:21: error: within this context\r\n         HandleScope scope2;\r\n                     ^\r\n../src/threads_a_gogo.cc:265:13: error: ‘IdleNotification’ is not a member of ‘v8::V8’\r\n             V8::IdleNotification();\r\n             ^\r\n../src/threads_a_gogo.cc:273:23: error: ‘New’ is not a member of ‘v8::String’\r\n               source= String::New(**str, (*str).length());\r\n                       ^\r\n../src/threads_a_gogo.cc:277:23: error: ‘New’ is not a member of ‘v8::String’\r\n               source= String::New(job->typeEval.scriptText_CharPtr);\r\n                       ^\r\n../src/threads_a_gogo.cc:281:21: error: ‘New’ is not a member of ‘v8::Script’\r\n             script= Script::New(source);\r\n                     ^\r\n../src/threads_a_gogo.cc:291:38: error: ‘struct typeThread’ has no member named ‘async_watcher’\r\n               uv_async_send(&thread->async_watcher);\r\n                                      ^\r\n../src/threads_a_gogo.cc:291:51: error: ‘uv_async_send’ was not declared in this scope\r\n               uv_async_send(&thread->async_watcher);\r\n                                                   ^\r\n../src/threads_a_gogo.cc:307:22: error: ‘New’ is not a member of ‘v8::String’\r\n             args[0]= String::New(**str, (*str).length());\r\n                      ^\r\n../src/threads_a_gogo.cc:310:65: error: invalid conversion from ‘int’ to ‘v8::Isolate*’ [-fpermissive]\r\n             Local<Array> array= Array::New(job->typeEvent.length);\r\n                                                                 ^\r\nIn file included from ../src/threads_a_gogo.cc:4:0:\r\n/home/node/.node-gyp/0.12.0/deps/v8/include/v8.h:2417:23: error:   initializing argument 1 of ‘static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)’ [-fpermissive]\r\n   static Local<Array> New(Isolate* isolate, int length = 0);\r\n                       ^\r\n../src/threads_a_gogo.cc:316:29: error: ‘New’ is not a member of ‘v8::String’\r\n               array->Set(i, String::New(**str, (*str).length()));\r\n                             ^\r\n../src/threads_a_gogo.cc:331:13: error: ‘IdleNotification’ is not a member of ‘v8::V8’\r\n             V8::IdleNotification();\r\n             ^\r\n../src/threads_a_gogo.cc:358:19: error: ‘class v8::Persistent<v8::Context>’ has no member named ‘Dispose’\r\n   thread->context.Dispose();\r\n                   ^\r\n../src/threads_a_gogo.cc: In function ‘void destroyaThread(typeThread*)’:\r\n../src/threads_a_gogo.cc:372:19: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   thread->JSObject->SetPointerInInternalField(0, NULL);\r\n                   ^\r\n../src/threads_a_gogo.cc:373:20: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’\r\n   thread->JSObject.Dispose();\r\n                    ^\r\n../src/threads_a_gogo.cc:376:13: error: ‘uv_handle_t’ was not declared in this scope\r\n   uv_close((uv_handle_t*) &thread->async_watcher, NULL);\r\n             ^\r\n../src/threads_a_gogo.cc:376:25: error: expected primary-expression before ‘)’ token\r\n   uv_close((uv_handle_t*) &thread->async_watcher, NULL);\r\n                         ^\r\n../src/threads_a_gogo.cc:376:36: error: ‘struct typeThread’ has no member named ‘async_watcher’\r\n   uv_close((uv_handle_t*) &thread->async_watcher, NULL);\r\n                                    ^\r\n../src/threads_a_gogo.cc:376:55: error: ‘uv_close’ was not declared in this scope\r\n   uv_close((uv_handle_t*) &thread->async_watcher, NULL);\r\n                                                       ^\r\n../src/threads_a_gogo.cc: At global scope:\r\n../src/threads_a_gogo.cc:400:3: error: variable or field ‘Callback’ declared void\r\n   uv_async_t *watcher\r\n   ^\r\n../src/threads_a_gogo.cc:400:3: error: ‘uv_async_t’ was not declared in this scope\r\n../src/threads_a_gogo.cc:400:15: error: ‘watcher’ was not declared in this scope\r\n   uv_async_t *watcher\r\n               ^\r\n../src/threads_a_gogo.cc:404:3: error: expected primary-expression before ‘int’\r\n , int revents) {\r\n   ^\r\nIn file included from ../src/threads_a_gogo.cc:19:0:\r\n../src/queues_a_gogo.cc:151:13: warning: ‘void initQueues()’ defined but not used [-Wunused-function]\r\n static void initQueues (void) {\r\n             ^\r\nIn file included from ../src/threads_a_gogo.cc:99:0:\r\n../src/createPool.js.c:1:20: warning: ‘kCreatePool_js’ defined but not used [-Wunused-variable]\r\n static const char* kCreatePool_js= \"\\n\\x28\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x63\\x72\\x65\\x61\\x74\\x65\\x50\\x6f\\x6f\\x6c\\x28\\x6e\\x29\\x7b\\x27\\x75\\x73\\x65 \\x73\\x74\\x72\\x69\\x63\\x74\\x27\\x3b\\x76\\x61\\x72 \\x54\\x3d\\x74\\x68\\x69\\x73\\x3b\\x6e\\x3d\\x4d\\x61\\x74\\x68\\x2e\\x66\\x6c\\x6f\\x6f\\x72\\x28\\x6e\\x29\\x3b\\x69\\x66\\x28\\x21\\x28\\x6e\\x3e\\x30\\x29\\x29\\x7b\\x74\\x68\\x72\\x6f\\x77\\x27\\x2e\\x63\\x72\\x65\\x61\\x74\\x65\\x50\\x6f\\x6f\\x6c\\x28 \\x6e\\x75\\x6d\\x4f\\x66\\x54\\x68\\x72\\x65\\x61\\x64\\x73 \\x29\\x3a \\x6e\\x75\\x6d\\x4f\\x66\\x54\\x68\\x72\\x65\\x61\\x64\\x73 \\x6d\\x75\\x73\\x74 \\x62\\x65 \\x61 \\x4e\\x75\\x6d\\x62\\x65\\x72 \\x3e \\x30\\x27\\x3b\\x7d\\n\\x76\\x61\\x72 \\x6b\\x54\\x79\\x70\\x65\\x52\\x75\\x6e\\x3d\\x31\\x3b\\x76\\x61\\x72 \\x6b\\x54\\x79\\x70\\x65\\x45\\x6d\\x69\\x74\\x3d\\x32\\x3b\\x76\\x61\\x72 \\x70\\x6f\\x6f\\x6c\\x3d\\x5b\\x5d\\x3b\\x76\\x61\\x72 \\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x3d\\x5b\\x5d\\x3b\\x76\\x61\\x72 \\x71\\x3d\\x7b\\x66\\x69\\x72\\x73\\x74\\x3a\\x6e\\x75\\x6c\\x6c\\x2c\\x6c\\x61\\x73\\x74\\x3a\\x6e\\x75\\x6c\\x6c\\x2c\\x6c\\x65\\x6e\\x67\\x74\\x68\\x3a\\x30\\x7d\\x3b\\x76\\x61\\x72 \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3d\\x7b\\x61\\x6e\\x79\\x3a\\x7b\\x65\\x76\\x61\\x6c\\x3a\\x65\\x76\\x61\\x6c\\x41\\x6e\\x79\\x2c\\x65\\x6d\\x69\\x74\\x3a\\x65\\x6d\\x69\\x74\\x41\\x6e\\x79\\x7d\\x2c\\x61\\x6c\\x6c\\x3a\\x7b\\x65\\x76\\x61\\x6c\\x3a\\x65\\x76\\x61\\x6c\\x41\\x6c\\x6c\\x2c\\x65\\x6d\\x69\\x74\\x3a\\x65\\x6d\\x69\\x74\\x41\\x6c\\x6c\\x7d\\x2c\\x6f\\x6e\\x3a\\x6f\\x6e\\x2c\\x74\\x6f\\x74\\x61\\x6c\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x3a\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x67\\x65\\x74\\x4e\\x75\\x6d\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x28\\x29\\x7b\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x7d\\x2c\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x3a\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x67\\x65\\x74\\x49\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x28\\x29\\x7b\\x72\\x65\\x74\\x75\\x72\\x6e \\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x7d\\x2c\\x70\\x65\\x6e\\x64\\x69\\x6e\\x67\\x4a\\x6f\\x62\\x73\\x3a\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x67\\x65\\x74\\x50\\x65\\x6e\\x64\\x69\\x6e\\x67\\x4a\\x6f\\x62\\x73\\x28\\x29\\x7b\\x72\\x65\\x74\\x75\\x72\\x6e \\x71\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x7d\\x2c\\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x3a\\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x2c\\x6c\\x6f\\x61\\x64\\x3a\\x70\\x6f\\x6f\\x6c\\x4c\\x6f\\x61\\x64\\x7d\\x3b\\x74\\x72\\x79\\x7b\\x77\\x68\\x69\\x6c\\x65\\x28\\x6e\\x2d\\x2d\\x29\\x7b\\x70\\x6f\\x6f\\x6c\\x5b\\x6e\\x5d\\x3d\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x5b\\x6e\\x5d\\x3d\\x54\\x2e\\x63\\x72\\x65\\x61\\x74\\x65\\x28\\x29\\x3b\\x7d\\x7d\\n\\x63\\x61\\x74\\x63\\x68\\x28\\x65\\x29\\x7b\\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x28\\x31\\x29\\x3b\\x74\\x68\\x72\\x6f\\x77 \\x65\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x70\\x6f\\x6f\\x6c\\x4c\\x6f\\x61\\x64\\x28\\x70\\x61\\x74\\x68\\x2c\\x63\\x62\\x29\\x7b\\x76\\x61\\x72 \\x69\\x3d\\x70\\x6f\\x6f\\x6c\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x3b\\x77\\x68\\x69\\x6c\\x65\\x28\\x69\\x2d\\x2d\\x29\\x7b\\x70\\x6f\\x6f\\x6c\\x5b\\x69\\x5d\\x2e\\x6c\\x6f\\x61\\x64\\x28\\x70\\x61\\x74\\x68\\x2c\\x63\\x62\\x29\\x3b\\x7d\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x6e\\x65\\x78\\x74\\x4a\\x6f\\x62\\x28\\x74\\x29\\x7b\\x76\\x61\\x72 \\x6a\\x6f\\x62\\x3d\\x71\\x50\\x75\\x6c\\x6c\\x28\\x29\\x3b\\x69\\x66\\x28\\x6a\\x6f\\x62\\x29\\x7b\\x69\\x66\\x28\\x6a\\x6f\\x62\\x2e\\x74\\x79\\x70\\x65\\x3d\\x3d\\x3d\\x6b\\x54\\x79\\x70\\x65\\x52\\x75\\x6e\\x29\\x7b\\x74\\x2e\\x65\\x76\\x61\\x6c\\x28\\x6a\\x6f\\x62\\x2e\\x73\\x72\\x63\\x54\\x65\\x78\\x74\\x4f\\x72\\x45\\x76\\x65\\x6e\\x74\\x54\\x79\\x70\\x65\\x2c\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x69\\x64\\x6c\\x65\\x43\\x42\\x28\\x65\\x2c\\x64\\x29\\x7b\\x6e\\x65\\x78\\x74\\x4a\\x6f\\x62\\x28\\x74\\x29\\x3b\\x76\\x61\\x72 \\x66\\x3d\\x6a\\x6f\\x62\\x2e\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x3b\\x69\\x66\\x28\\x66\\x29\\x7b\\x6a\\x6f\\x62\\x2e\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x2e\\x63\\x61\\x6c\\x6c\\x28\\x74\\x2c\\x65\\x2c\\x64\\x29\\x3b\\x7d\\x7d\\x29\\x3b\\x7d\\n\\x65\\x6c\\x73\\x65 \\x69\\x66\\x28\\x6a\\x6f\\x62\\x2e\\x74\\x79\\x70\\x65\\x3d\\x3d\\x3d\\x6b\\x54\\x79\\x70\\x65\\x45\\x6d\\x69\\x74\\x29\\x7b\\x74\\x2e\\x65\\x6d\\x69\\x74\\x28\\x6a\\x6f\\x62\\x2e\\x73\\x72\\x63\\x54\\x65\\x78\\x74\\x4f\\x72\\x45\\x76\\x65\\x6e\\x74\\x54\\x79\\x70\\x65\\x2c\\x6a\\x6f\\x62\\x2e\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x29\\x3b\\x6e\\x65\\x78\\x74\\x4a\\x6f\\x62\\x28\\x74\\x29\\x3b\\x7d\\x7d\\n\\x65\\x6c\\x73\\x65\\x7b\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x70\\x75\\x73\\x68\\x28\\x74\\x29\\x3b\\x7d\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x71\\x50\\x75\\x73\\x68\\x28\\x73\\x72\\x63\\x54\\x65\\x78\\x74\\x4f\\x72\\x45\\x76\\x65\\x6e\\x74\\x54\\x79\\x70\\x65\\x2c\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x2c\\x74\\x79\\x70\\x65\\x29\\x7b\\x76\\x61\\x72 \\x6a\\x6f\\x62\\x3d\\x7b\\x6e\\x65\\x78\\x74\\x3a\\x6e\\x75\\x6c\\x6c\\x2c\\x73\\x72\\x63\\x54\\x65\\x78\\x74\\x4f\\x72\\x45\\x76\\x65\\x6e\\x74\\x54\\x79\\x70\\x65\\x3a\\x73\\x72\\x63\\x54\\x65\\x78\\x74\\x4f\\x72\\x45\\x76\\x65\\x6e\\x74\\x54\\x79\\x70\\x65\\x2c\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x3a\\x63\\x62\\x4f\\x72\\x44\\x61\\x74\\x61\\x2c\\x74\\x79\\x70\\x65\\x3a\\x74\\x79\\x70\\x65\\x7d\\x3b\\x69\\x66\\x28\\x71\\x2e\\x6c\\x61\\x73\\x74\\x29\\x7b\\x71\\x2e\\x6c\\x61\\x73\\x74\\x2e\\x6e\\x65\\x78\\x74\\x3d\\x6a\\x6f\\x62\\x3b\\x71\\x2e\\x6c\\x61\\x73\\x74\\x3d\\x6a\\x6f\\x62\\x3b\\x7d\\n\\x65\\x6c\\x73\\x65\\x7b\\x71\\x2e\\x66\\x69\\x72\\x73\\x74\\x3d\\x71\\x2e\\x6c\\x61\\x73\\x74\\x3d\\x6a\\x6f\\x62\\x3b\\x7d\\n\\x71\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x2b\\x2b\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x71\\x50\\x75\\x6c\\x6c\\x28\\x29\\x7b\\x76\\x61\\x72 \\x6a\\x6f\\x62\\x3d\\x71\\x2e\\x66\\x69\\x72\\x73\\x74\\x3b\\x69\\x66\\x28\\x6a\\x6f\\x62\\x29\\x7b\\x69\\x66\\x28\\x71\\x2e\\x6c\\x61\\x73\\x74\\x3d\\x3d\\x3d\\x6a\\x6f\\x62\\x29\\x7b\\x71\\x2e\\x66\\x69\\x72\\x73\\x74\\x3d\\x71\\x2e\\x6c\\x61\\x73\\x74\\x3d\\x6e\\x75\\x6c\\x6c\\x3b\\x7d\\n\\x65\\x6c\\x73\\x65\\x7b\\x71\\x2e\\x66\\x69\\x72\\x73\\x74\\x3d\\x6a\\x6f\\x62\\x2e\\x6e\\x65\\x78\\x74\\x3b\\x7d\\n\\x71\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x2d\\x2d\\x3b\\x7d\\n\\x72\\x65\\x74\\x75\\x72\\x6e \\x6a\\x6f\\x62\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x65\\x76\\x61\\x6c\\x41\\x6e\\x79\\x28\\x73\\x72\\x63\\x2c\\x63\\x62\\x29\\x7b\\x71\\x50\\x75\\x73\\x68\\x28\\x73\\x72\\x63\\x2c\\x63\\x62\\x2c\\x6b\\x54\\x79\\x70\\x65\\x52\\x75\\x6e\\x29\\x3b\\x69\\x66\\x28\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x29\\x7b\\x6e\\x65\\x78\\x74\\x4a\\x6f\\x62\\x28\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x70\\x6f\\x70\\x28\\x29\\x29\\x3b\\x7d\\n\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x65\\x76\\x61\\x6c\\x41\\x6c\\x6c\\x28\\x73\\x72\\x63\\x2c\\x63\\x62\\x29\\x7b\\x70\\x6f\\x6f\\x6c\\x2e\\x66\\x6f\\x72\\x45\\x61\\x63\\x68\\x28\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e\\x28\\x76\\x2c\\x69\\x2c\\x6f\\x29\\x7b\\x76\\x2e\\x65\\x76\\x61\\x6c\\x28\\x73\\x72\\x63\\x2c\\x63\\x62\\x29\\x3b\\x7d\\x29\\x3b\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x65\\x6d\\x69\\x74\\x41\\x6e\\x79\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x64\\x61\\x74\\x61\\x29\\x7b\\x71\\x50\\x75\\x73\\x68\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x64\\x61\\x74\\x61\\x2c\\x6b\\x54\\x79\\x70\\x65\\x45\\x6d\\x69\\x74\\x29\\x3b\\x69\\x66\\x28\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x29\\x7b\\x6e\\x65\\x78\\x74\\x4a\\x6f\\x62\\x28\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x2e\\x70\\x6f\\x70\\x28\\x29\\x29\\x3b\\x7d\\n\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x65\\x6d\\x69\\x74\\x41\\x6c\\x6c\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x64\\x61\\x74\\x61\\x29\\x7b\\x70\\x6f\\x6f\\x6c\\x2e\\x66\\x6f\\x72\\x45\\x61\\x63\\x68\\x28\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e\\x28\\x76\\x2c\\x69\\x2c\\x6f\\x29\\x7b\\x76\\x2e\\x65\\x6d\\x69\\x74\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x64\\x61\\x74\\x61\\x29\\x3b\\x7d\\x29\\x3b\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x6f\\x6e\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x63\\x62\\x29\\x7b\\x70\\x6f\\x6f\\x6c\\x2e\\x66\\x6f\\x72\\x45\\x61\\x63\\x68\\x28\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e\\x28\\x76\\x2c\\x69\\x2c\\x6f\\x29\\x7b\\x76\\x2e\\x6f\\x6e\\x28\\x65\\x76\\x65\\x6e\\x74\\x2c\\x63\\x62\\x29\\x3b\\x7d\\x29\\x3b\\x72\\x65\\x74\\x75\\x72\\x6e \\x74\\x68\\x69\\x73\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x28\\x72\\x75\\x64\\x65\\x6c\\x79\\x29\\x7b\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x65\\x72\\x72\\x28\\x29\\x7b\\x74\\x68\\x72\\x6f\\x77\\x27\\x54\\x68\\x69\\x73 \\x74\\x68\\x72\\x65\\x61\\x64 \\x70\\x6f\\x6f\\x6c \\x68\\x61\\x73 \\x62\\x65\\x65\\x6e \\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x65\\x64\\x27\\x3b\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x62\\x65\\x4e\\x69\\x63\\x65\\x28\\x29\\x7b\\x69\\x66\\x28\\x71\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x29\\x7b\\x73\\x65\\x74\\x54\\x69\\x6d\\x65\\x6f\\x75\\x74\\x28\\x62\\x65\\x4e\\x69\\x63\\x65\\x2c\\x36\\x36\\x36\\x29\\x3b\\x7d\\n\\x65\\x6c\\x73\\x65\\x7b\\x62\\x65\\x52\\x75\\x64\\x65\\x28\\x29\\x3b\\x7d\\x7d\\n\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e \\x62\\x65\\x52\\x75\\x64\\x65\\x28\\x29\\x7b\\x71\\x2e\\x6c\\x65\\x6e\\x67\\x74\\x68\\x3d\\x30\\x3b\\x71\\x2e\\x66\\x69\\x72\\x73\\x74\\x3d\\x6e\\x75\\x6c\\x6c\\x3b\\x70\\x6f\\x6f\\x6c\\x2e\\x66\\x6f\\x72\\x45\\x61\\x63\\x68\\x28\\x66\\x75\\x6e\\x63\\x74\\x69\\x6f\\x6e\\x28\\x76\\x2c\\x69\\x2c\\x6f\\x29\\x7b\\x76\\x2e\\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x28\\x29\\x3b\\x7d\\x29\\x3b\\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x2e\\x65\\x76\\x61\\x6c\\x3d\\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x2e\\x74\\x6f\\x74\\x61\\x6c\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x3d\\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x2e\\x69\\x64\\x6c\\x65\\x54\\x68\\x72\\x65\\x61\\x64\\x73\\x3d\\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x2e\\x70\\x65\\x6e\\x64\\x69\\x6e\\x67\\x4a\\x6f\\x62\\x73\\x3d\\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x2e\\x64\\x65\\x73\\x74\\x72\\x6f\\x79\\x3d\\x65\\x72\\x72\\x3b\\x7d\\n\\x72\\x75\\x64\\x65\\x6c\\x79\\x3f\\x62\\x65\\x52\\x75\\x64\\x65\\x28\\x29\\x3a\\x62\\x65\\x4e\\x69\\x63\\x65\\x28\\x29\\x3b\\x7d\\n\\x72\\x65\\x74\\x75\\x72\\x6e \\x70\\x6f\\x6f\\x6c\\x4f\\x62\\x6a\\x65\\x63\\x74\\x3b\\x7d\\x29\";\r\n                    ^\r\n../src/threads_a_gogo.cc:112:23: warning: ‘typeQueueItem* nuJobQueueItem()’ defined but not used [-Wunused-function]\r\n static typeQueueItem* nuJobQueueItem (void) {\r\n                       ^\r\n../src/threads_a_gogo.cc:125:20: warning: ‘typeThread* isAThread(v8::Handle<v8::Object>)’ defined but not used [-Wunused-function]\r\n static typeThread* isAThread (Handle<Object> receiver) {\r\n                    ^\r\n../src/threads_a_gogo.cc:145:13: warning: ‘void pushToInQueue(typeQueueItem*, typeThread*)’ defined but not used [-Wunused-function]\r\n static void pushToInQueue (typeQueueItem* qitem, typeThread* thread) {\r\n             ^\r\n../src/threads_a_gogo.cc:182:14: warning: ‘void* aThread(void*)’ defined but not used [-Wunused-function]\r\n static void* aThread (void* arg) {\r\n              ^\r\n../src/threads_a_gogo.cc:220:22: warning: ‘v8::Handle<v8::Value> threadEmit(const int&)’ declared ‘static’ but never defined [-Wunused-function]\r\n static Handle<Value> threadEmit (const Arguments &args);\r\n                      ^\r\n../src/threads_a_gogo.cc:366:13: warning: ‘void destroyaThread(typeThread*)’ defined but not used [-Wunused-function]\r\n static void destroyaThread (typeThread* thread) {\r\n             ^\r\nmake: *** [Release/obj.target/threads_a_gogo/src/threads_a_gogo.o] Error 1\r\nmake: Leaving directory `/home/node/zgws/web_open/node_modules/threads_a_gogo/build'\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/opt/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)\r\ngyp ERR! System Linux 3.13.0-32-generic\r\ngyp ERR! command \"node\" \"/opt/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/node/zgws/web_open/node_modules/threads_a_gogo\r\ngyp ERR! node -v v0.12.0\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok\r\nnpm ERR! Linux 3.13.0-32-generic\r\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"i\"\r\nnpm ERR! node v0.12.0\r\nnpm ERR! npm  v2.5.1\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! threads_a_gogo@0.1.7 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the threads_a_gogo@0.1.7 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the threads_a_gogo package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls threads_a_gogo\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/node/zgws/web_open/npm-debug.log\r\n"},"comment":{"url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/comments/232944899","html_url":"https://github.com/xk/node-threads-a-gogo/issues/53#issuecomment-232944899","issue_url":"https://api.github.com/repos/xk/node-threads-a-gogo/issues/53","id":232944899,"user":{"login":"wjianwei126","id":13940774,"avatar_url":"https://avatars.githubusercontent.com/u/13940774?v=3","gravatar_id":"","url":"https://api.github.com/users/wjianwei126","html_url":"https://github.com/wjianwei126","followers_url":"https://api.github.com/users/wjianwei126/followers","following_url":"https://api.github.com/users/wjianwei126/following{/other_user}","gists_url":"https://api.github.com/users/wjianwei126/gists{/gist_id}","starred_url":"https://api.github.com/users/wjianwei126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjianwei126/subscriptions","organizations_url":"https://api.github.com/users/wjianwei126/orgs","repos_url":"https://api.github.com/users/wjianwei126/repos","events_url":"https://api.github.com/users/wjianwei126/events{/privacy}","received_events_url":"https://api.github.com/users/wjianwei126/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T13:00:58Z","updated_at":"2016-07-15T13:00:58Z","body":"me too cant install....."}}
{"actor":{"display_login":"wjianwei126"}}