ruifig / czspas

Minimalistic socket library inspired by Asio/Boost Asio, implemented in 1 single header file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Service::run thread safe

ruifig opened this issue · comments

This is so multiple threads can dequeue completed handlers. Pretty much like Asio.
Although by allowing this, it would seriously complicate things for the user, since access to sockets would have to be protected.
For example, to make things easier for the user, some kind of strand implementation would be required, thus increasing czspas codebase.

Something to think about later.