Esempio n. 1
0
	void event_binder<TSink>::bind(const event_source<sink_type>& source, sink_type sink)
	{
		unbind();

		attach_after(&source.list_head);
		this->sink = sink;
	}
Esempio n. 2
0
void basic_event_binder<EventPolicy>::bind(
	event_source_type const & source, sink_type sink) 
{
	boost::lock_guard<boost::mutex> guard(locker_);
	boost::lock_guard<boost::mutex> guard_basic(source.basic_event_locker_);
	unbind_weak();
	attach_after(&source.list_head_);
	this->sink_ = sink;
}