Ejemplo n.º 1
0
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");
	}
}
Ejemplo n.º 2
0
int32_t CEpollReactor::close_reactor()
{
	if(epfd_ != -1)
	{
		close(epfd_);
	}

	if(events_ != 0)
	{
		delete []events_;
		events_ = 0;
	}

	stop_event_loop();
	free_set_.clear();
}
Ejemplo n.º 3
0
void _on_btn_yes(CWT_WIDGET_PTR w)
{
	_cwt_dialog_done(w, MSGBOX_YES);
	cwt_dialog_accept(w);
	stop_event_loop();
}
Ejemplo n.º 4
0
void _on_btn_no(CWT_WIDGET_PTR w)
{
	_cwt_dialog_done(w, MSGBOX_NO);
	cwt_dialog_reject(w);
	stop_event_loop();
}
Ejemplo n.º 5
0
void _on_btn_cancel(CWT_WIDGET_PTR w)
{
	_cwt_dialog_done(w, MSGBOX_CANCEL);
	cwt_dialog_reject(w);
	stop_event_loop();
}