I have a server-app that creates a new thread for each client that connects.
Every client sends a struct with its own info. The server store these
structs in an array and sends all these structs back to every client.
My questions is: Do I need to lock these structs when I’m writing to/reading
from them? If yes, how to do it?
I have a server-app that creates a new thread for each client that connects.
Every client sends a struct with its own info. The server store these
structs in an array and sends all these structs back to every client.
My questions is: Do I need to lock these structs when I’m writing to/reading
from them? If yes, how to do it?
Are you aware that this is totally off topic from SDL ???
Does SDL use a thread-safe library? What about smpeg? I’ve been having loads
of internal threading problems with a smpeg <-> SDL app. BTW, can I ask about
smpeg here?