Of course, the input lock must be held when doing the (non-blocking)
recv() call too, else there'd still be a race condition (two threads both receiving some data, and then the last to read processing it first, which would be a disaster).
Showing
Please register or sign in to comment