src/serializer/logger.cpp
/* modifies s so that Logger::scheduling can be used to record
 * thread info when fair scheduling is enabled
 */
modifies s so that Logger::scheduling can be used to record
thread info when fair scheduling is enabled
modifies s so that Logger :: scheduling can be used to record thread info when fair scheduling is enabled
void Logger::fairScheduling(thrID target, SchedPointInfo *s) {
    map<thrID, bool> save_map;
    map<thrID, bool>::iterator itr;
    for (itr = s->enabled.begin(); itr != s->enabled.end(); itr++) {
        save_map[itr->first] = itr->second;
    }
    s->enabled.clear();
    for (itr = s->fenmap.begin(); itr != s->fenmap.end(); itr++) {
        s->enabled[itr->first] = itr->second;
    }
    scheduling(target, s);
    s->enabled.clear();
    for (itr = save_map.begin(); itr != save_map.end(); itr++) {
        s->enabled[itr->first] = itr->second;
    }
}
void Logger :: fairScheduling ( thrID target , SchedPointInfo * s ) { map < thrID , bool > save_map ; map < thrID , bool > :: iterator itr ; for ( itr = s -> enabled . begin ( ) ; itr != s -> enabled . end ( ) ; itr ++ ) { save_map [ itr -> first ] = itr -> second ; } s -> enabled . clear ( ) ; for ( itr = s -> fenmap . begin ( ) ; itr != s -> fenmap . end ( ) ; itr ++ ) { s -> enabled [ itr -> first ] = itr -> second ; } scheduling ( target , s ) ; s -> enabled . clear ( ) ; for ( itr = save_map . begin ( ) ; itr != save_map . end ( ) ; itr ++ ) { s -> enabled [ itr -> first ] = itr -> second ; } }
modifies s so that Logger::scheduling can be used to record
 thread info when fair scheduling is enabled
modifies s so that Logger :: scheduling can be used to record thread info when fair scheduling is enabled