示例#1
0
static Ret test_timer(void* user_data) {
    Reactor* reactor = (Reactor*)user_data;
    printf("%s: timer....\n", __func__);
    
    reactor_stop(reactor);

    return RET_OK;
}
示例#2
0
void thread_stop(thread_t *thread) {
  assert(thread != NULL);
  reactor_stop(thread->reactor);
}