Uses of Class
it.polimi.ingsw.Utility.ProducerConsumerLock
-
Uses of ProducerConsumerLock in it.polimi.ingsw.Client
Modifier and TypeMethodDescriptionstatic void
SocketClient.makeMove
(PrintWriter out, ProducerConsumerLock lineLockers, AtomicReference<String> lineBuffer) this method manages move phaseprivate static void
SocketClient.readServerLine
(BufferedReader in, ProducerConsumerLock lineLockers, AtomicReference<String> lineBuffer) Socket thread listenerstatic boolean
SocketClient.turnManagement
(ProducerConsumerLock lineLockers, AtomicReference<String> lineBuffer, AtomicReference<String> currentPlayer, ClientCommonGoalCard c1, ClientCommonGoalCard c2, boolean clientsTurn, AtomicInteger points) this method manages the turn evolution -
Uses of ProducerConsumerLock in it.polimi.ingsw.Server
Modifier and TypeMethodDescriptionprivate static void
SocketServer.makeMove
(GameController gc, PrintWriter out, com.google.gson.Gson gson, AtomicBoolean clientsTurn, ProducerConsumerLock lineLockers, AtomicReference<String> l, com.google.gson.Gson gson_move) this method manages the move phaseprivate static void
SocketServer.readClientLine
(BufferedReader in, PrintWriter out, AtomicBoolean clientsTurn, ProducerConsumerLock lineLockers, AtomicReference<String> l, AtomicReference<SocketKeepAlive> ka) Socket thread listener