Merge branch 'main' of https://gitlab2.istic.univ-rennes1.fr/trochas/tp-4-wok
This commit is contained in:
@@ -58,6 +58,6 @@ public class Client extends Thread {
|
||||
}
|
||||
|
||||
public void cuir_au_stand(Stand_de_cuisson stand){
|
||||
//stand.
|
||||
stand.ajouter_client(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user