This commit is contained in:
trochas
2024-12-02 15:55:18 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -58,6 +58,6 @@ public class Client extends Thread {
}
public void cuir_au_stand(Stand_de_cuisson stand){
//stand.
stand.ajouter_client(this);
}
}

View File

@@ -16,4 +16,8 @@ public class Stand_de_cuisson {
public synchronized void finir_cuit(Client client){
notifyAll();
}
public synchronized void ajouter_client(Client client){
clients.add(client);
}
}