Beispiel #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;
}
void thread_stop(thread_t *thread) {
  assert(thread != NULL);
  reactor_stop(thread->reactor);
}