| 27 | #include "co_routine_inner.h" |
| 28 | |
| 29 | void* RoutineFunc(void* args) |
| 30 | { |
| 31 | co_enable_hook_sys(); |
| 32 | int* routineid = (int*)args; |
| 33 | while (true) |
| 34 | { |
| 35 | char sBuff[128]; |
| 36 | sprintf(sBuff, "from routineid %d stack addr %p\n", *routineid, sBuff); |
| 37 | |
| 38 | printf("%s", sBuff); |
| 39 | poll(NULL, 0, 1000); //sleep 1s |
| 40 | } |
| 41 | return NULL; |
| 42 | } |
| 43 | |
| 44 | int main() |
| 45 | { |
nothing calls this directly
no test coverage detected