Opened 6 years ago
#12320 new Patches
add an example to demonstrate how to leverage sockets concurrently in multithreading scenarios
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | Boost 1.62.0 | Component: | asio |
Version: | Boost 1.61.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
The ideal solution of leveraging sockets concurrently in multithreading scenarios should 1. not block io workers (the threads where io_service.run() is invoked), 2. be free of lock race, 3. etc.
There are many threads when you are searching this issue in google, but usable code is hard to find.
In this proposal, I offer a reference implementation to the people who wanna call async_write family in multiple threads.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
patch