| 66 | return NULL; |
| 67 | } |
| 68 | int main() |
| 69 | { |
| 70 | stEnv_t* env = new stEnv_t; |
| 71 | env->cond = co_cond_alloc(); |
| 72 | |
| 73 | stCoRoutine_t* consumer_routine; |
| 74 | co_create(&consumer_routine, NULL, Consumer, env); |
| 75 | co_resume(consumer_routine); |
| 76 | |
| 77 | stCoRoutine_t* producer_routine; |
| 78 | co_create(&producer_routine, NULL, Producer, env); |
| 79 | co_resume(producer_routine); |
| 80 | |
| 81 | co_eventloop(co_get_epoll_ct(), NULL, NULL); |
| 82 | return 0; |
| 83 | } |
nothing calls this directly
no test coverage detected