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

Method RunThread

recorded/capivara/app/src/thread.hpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5class MyThread {
6 public:
7 static void RunThread(void *arg)
8 {
9 int counter = * ((int *)arg);
10 while(counter) {
11 counter --;
12 printf(".\n");
13 uv_sleep(100);
14 }
15 printf("done running out thread!!\n");
16 }
17
18 static void Thread(const v8::FunctionCallbackInfo<v8::Value> &args)
19 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected