ok
This commit is contained in:
@@ -7,8 +7,8 @@ public class Stand_de_cuisson {
|
||||
while(clients.isEmpty()){
|
||||
try{
|
||||
wait();
|
||||
}catch (Exception e) {
|
||||
System.out.println(e);
|
||||
}catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return clients.poll();
|
||||
@@ -19,5 +19,6 @@ public class Stand_de_cuisson {
|
||||
|
||||
public synchronized void ajouter_client(Client client){
|
||||
clients.add(client);
|
||||
notify();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user