test_daemon::~test_daemon() throw() { stop_event_loop(); ::pthread_kill(th_repl, SIGTERM); if (th_repl) { pthread_join(th_repl, 0); fprintf(stdout, "th_repl joined\n"); } }
int32_t CEpollReactor::close_reactor() { if(epfd_ != -1) { close(epfd_); } if(events_ != 0) { delete []events_; events_ = 0; } stop_event_loop(); free_set_.clear(); }
void _on_btn_yes(CWT_WIDGET_PTR w) { _cwt_dialog_done(w, MSGBOX_YES); cwt_dialog_accept(w); stop_event_loop(); }
void _on_btn_no(CWT_WIDGET_PTR w) { _cwt_dialog_done(w, MSGBOX_NO); cwt_dialog_reject(w); stop_event_loop(); }
void _on_btn_cancel(CWT_WIDGET_PTR w) { _cwt_dialog_done(w, MSGBOX_CANCEL); cwt_dialog_reject(w); stop_event_loop(); }