0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/asio
Razvan Cojocaru 4b10dc453a Add AsioContextStore::stop()
This is meant to help with the following scenario: main thread
creates secondary threads, each secondary thread asks the context
store for its own context, then goes into a "forever" scheduling
loop. Main thread waits for the secondary threads to finish, and
owns the context store. It would be nice to be able to have yet
another thread (say, a SIGINT handler) be able to call .stop()
on all the contexts managed by the context store, thus being able
to end the loops in the secondary threads and allow the main
thread to exit.

Signed-off-by: Razvan Cojocaru <razvan.cojocaru@openvpn.com>
2024-05-22 16:19:13 +00:00
..
asioboundsock.hpp Remove OPENVPN_EXTERN 2023-04-27 23:35:41 +02:00
asiocontext.hpp Add AsioContextStore::stop() 2024-05-22 16:19:13 +00:00
asioerr.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
asiopolysock.hpp Use openvpn_io::detail::socket_type instead of "int" 2023-09-28 11:33:41 +02:00
asioresolverres.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
asiosignal.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
asiostop.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
asiowork.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
scoped_asio_stream.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00