This commit is contained in:
glenux 2006-03-06 13:19:22 +00:00
parent 3b58b086d3
commit be70ef346e
3 changed files with 10 additions and 4 deletions

View file

@ -23,8 +23,9 @@ bool ClockCb::adjust(TimeStamp ts){
// lock jusqu'a la fin de la fonction
Glib::Mutex::Lock lock(_mutex);
// si les conditions sont remplies, alors on peut modifier l'horloge
printf("ClockCb::adjust -- stamp index : %d\n", ts.getIndex() );
return result;
}

View file

@ -122,7 +122,12 @@ bool Config::isValid() {
}
valid++;
if (_index >= 0) {
if (_index >= 0){
score++;
}
valid++;
if (_index < _group_hosts.size()){
score++;
}
valid++;

View file

@ -22,8 +22,8 @@ void LowReceiver::manage_cbcast(Message * mesg) {
printf("LowReceiver::manage_cbcast - Received my own message -- delivering automatically\n");
//on faire la gestion du cbcast/send ici, c'est plus simple que
//de partager une variable+mutex avec le sender
//
_clock.adjust(mesg->getStamp());
} else {
printf("LowReceiver::manage_cbcast - Received a message from a friend\n");