Commit abaca81
committed
common/async: SharedMutex uses append instead of bind_handler
boost::asio::append() is the modern way to bind additional values to the
completion handler while preserving its associated executor, allocator,
cancellation slot, etc
this obviates the need for bind_handler() itself, but its template class
CompletionHandler is still useful if we're already storing the arguments
in a std::tuple<> like CompletionImpl::bind_and_forward()
Signed-off-by: Casey Bodley <[email protected]>1 parent 56e48d4 commit abaca81
File tree
1 file changed
+5
-8
lines changed- src/common/async/detail
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 138 | + | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 226 | + | |
| 227 | + | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
| |||
0 commit comments