repositories
/
TD_SR.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TD2: Comment thread-safety requirement.
[TD_SR.git]
/
TD2
/
server
/
BroadcastoThreadService.java
diff --git
a/TD2/server/BroadcastoThreadService.java
b/TD2/server/BroadcastoThreadService.java
index e8a3622a2d53a7396a8877b22b6830dc7769b661..4c7281307fb3742d980cdeca342549f249511268 100644
(file)
--- a/
TD2/server/BroadcastoThreadService.java
+++ b/
TD2/server/BroadcastoThreadService.java
@@
-38,6
+38,13
@@
public class BroadcastoThreadService implements Runnable {
}
}
}
}
+ /**
+ * Be careful, this function must be thread-safe
+ * @param clientSocket [description]
+ * @param sharedList [description]
+ * @throws IOException [description]
+ * @throws ClassNotFoundException [description]
+ */
public void doService(Socket clientSocket, ArrayList<ObjectOutputStream> sharedList) throws IOException, ClassNotFoundException {
ObjectInputStream OReader = new ObjectInputStream(clientSocket.getInputStream());
ObjectOutputStream OWriter = new ObjectOutputStream(clientSocket.getOutputStream());
public void doService(Socket clientSocket, ArrayList<ObjectOutputStream> sharedList) throws IOException, ClassNotFoundException {
ObjectInputStream OReader = new ObjectInputStream(clientSocket.getInputStream());
ObjectOutputStream OWriter = new ObjectOutputStream(clientSocket.getOutputStream());