21 #include <boost/lambda/lambda.hpp> 22 #include <boost/lambda/bind.hpp> 34 bool senf::ppi::EventManager::alive_ (
false);
36 prefix_ void senf::ppi::EventManager::destroyModule(module::Module & module)
38 using boost::lambda::_1;
39 namespace l = boost::lambda;
41 registrations_.erase_if(l::bind(&detail::EventBindingBase::module_,_1) == &module);
46 using boost::lambda::_1;
47 namespace l = boost::lambda;
50 std::find_if(registrations_.begin(), registrations_.end(),
51 l::bind(&detail::EventBindingBase::descriptor_,_1) == &event)
52 == registrations_.end(),
53 "Internal failure: registrations still active while destroying event." 54 "Maybe you've put the SENF_PPI_MODULE macro in a superclass instead of" friend class EventDescriptor
EventManager public header.
#define SENF_ASSERT(x, comment)