/// Free dispatcher resources, see @ref Status section for details.
~dispatcher() throw() { event_base_free(_event_base); }
#else
+#ifndef EVENTXX_NO_WARNING
#warning "The dispatcher class *will* leak memory because of a libevent bug, " \
"see http://www.mail-archive.com/libevent-users@monkey.org/msg00110.html " \
"for more info an a patch. If you already have this patch, please " \
"-DEVENTXX_EVENT_BASE_FREE_FIX to your compiler to make this message disappear " \
"and really free the dispatcher memory using event_base_free()."
+#endif
#endif
/**
CXXFLAGS=-I.. -g -Wall
+
# Uncomment this if you have a fixed event_base_free().
# See http://www.mail-archive.com/libevent-users@monkey.org/msg00112.html
#CXXFLAGS+=-DEVENTXX_EVENT_BASE_FREE_FIX
+
+# Don't warn me about memory leaks
+CXXFLAGS+=-DEVENTXX_NO_WARNING
+
LDFLAGS=-levent
targets=bench test-eof test-time test-weof trivial c-way functor-way \