MCPcopy Create free account
hub / github.com/Tencent/phxsql / RoutineRun

Function RoutineRun

phxsqlproxy/phxcoroutine.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static int g_routine_id = 0;
27
28static void *RoutineRun(void * p) {
29 g_routine_id++;
30 LogWarning("routine %d running....", g_routine_id);
31 //phoenix::SetLogWorkerIdx( g_routine_id );
32
33 Coroutine * routine = (Coroutine *) p;
34 routine->SetRoutineIdx(g_routine_id);
35 int ret = routine->run();
36 if (ret) {
37 //do something
38 }
39 return NULL;
40}
41
42Coroutine::Coroutine() {
43 routine_ = NULL;

Callers

nothing calls this directly

Calls 3

LogWarningFunction · 0.85
SetRoutineIdxMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected