MCPcopy Create free account
hub / github.com/ErickWendel/myownnode / Thread

Method Thread

preclass/capivara/app/src/thread.hpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 static void Thread(const v8::FunctionCallbackInfo<v8::Value> &args)
36 {
37 auto isolate = args.GetIsolate();
38 auto context = isolate->GetCurrentContext();
39 int64_t counter = args[0]->IntegerValue(context).ToChecked();
40
41 uv_thread_t taskId;
42 uv_thread_create(&taskId, RunThread, &counter);
43 // uv_thread_join(&taskId);
44 }
45};

Callers

nothing calls this directly

Calls 2

GetIsolateMethod · 0.45
ToCheckedMethod · 0.45

Tested by

no test coverage detected