-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Description
It would be nice if EventSender
was Clone so that I could send one EventSender to a thread that accepts incoming connections and that I then can clone the EventSender
when I create client handling threads.
My current workaround is to setup a channel from the main thread (that runs the SDL event loop) to the connection accepting thread and using a custom sdl event to request a new EventSender
. It feels a bit convoluted. Is there a simpler way?
My app allows at most 1 connection at a time, so I prefer the easy approach of using std threads over async.
Metadata
Metadata
Assignees
Labels
No labels