Guardian Programmer's Guide

Table Of Contents
Fault-Tolerant Programming in C
Guardian Programmer’s Guide 421922-014
27 - 46
Primary and Backup Processing
/*Start a replacement backup process*/
initialize_backup ();
/*Update counter with last value*/
counter = counter_state;
/*Continue the work of the application*/
primary_processing ();
break;
case UPDATE_MESSAGE:
/*Update the counter state*/
counter_state =
message.msg_variants.counter_value;
break;
}
}
}