/*! * \brief Run timer handler of all domains * \return 0 if all timer return 0, != 0 otherwise */ int synchronize_all_udomains(void) { int res = 0; dlist_t* ptr; get_act_time(); /* Get and save actual time */ for( ptr=root ; ptr ; ptr=ptr->next) mem_timer_udomain(ptr->d); return res; }
/*! * \brief Run timer handler of all domains * \return 0 if all timer return 0, != 0 otherwise */ int synchronize_all_udomains(int istart, int istep) { int res = 0; dlist_t* ptr; get_act_time(); /* Get and save actual time */ if (db_mode==DB_ONLY) { for( ptr=root ; ptr ; ptr=ptr->next) res |= db_timer_udomain(ptr->d); } else { for( ptr=root ; ptr ; ptr=ptr->next) mem_timer_udomain(ptr->d, istart, istep); } return res; }