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

Class Coroutine

phxsqlproxy/phxcoroutine.h:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace phxsqlproxy {
21
22class Coroutine {
23 public:
24 Coroutine();
25 virtual ~Coroutine();
26
27 virtual int run() = 0;
28
29 int start();
30
31 void SetRoutineIdx(int routine_idx);
32
33 void resume();
34
35 void yield();
36
37 private:
38 stCoRoutine_t * routine_;
39
40 protected:
41 int routine_idx_;
42};
43
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected