Lock adapter while send packet

Feb 6, 2015 at 4:24 PM
Edited Feb 7, 2015 at 7: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 ?
Feb 13, 2015 at 9: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.