boost::cfunction update
update avloop style