| 20 | namespace phxsqlproxy { |
| 21 | |
| 22 | class 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected