: entrySetById( entrySet.template get<Id>()),
entrySetByTimeout( entrySet.template get<Timeout> ()),
timer( "TimerEventProxy " + description,
- membind(&TimerEventProxy<IdType>::timerEvent, this), 0, false)
+ membind(&TimerEventProxy<IdType>::timerEvent, this), SENF_INT2CLOCKTYPE(0), false)
{ }
template<typename IdType>
{
// insert new entry or replace the timeout of an entry already indexed
typename EntrySetById_t::iterator i = entrySetById.find(id);
- if(i == entrySetById.end())
+ if (i == entrySetById.end())
entrySetByTimeout.insert( Entry(timeout, id, cb));
- else{
+ else {
Entry tmp = *i;
tmp.timeout = timeout;
entrySetById.replace(i,tmp);
const
{
typename EntrySetById_t::const_iterator i ( entrySetById.find( id));
- return i == entrySetById.end() ? 0 : i->timeout;
+ return i == entrySetById.end() ? SENF_INT2CLOCKTYPE(0) : i->timeout;
}