Lock adapter while send packet

Feb 6, 2015 at 5:24 PM
Edited Feb 7, 2015 at 8:04 AM
I try to send packet using your example and i have a question:

If i want to open several files concurrent in different threads, should lock the object that send the packets ?
Coordinator
Feb 13, 2015 at 10:41 AM
I think it is safer to not use the same PacketCommunicator in different threads in parallel, so if you do want to use the same PacketCommunicator, it's probably better to lock it.