MCPcopy Create free account
hub / github.com/boostorg/asio / add

Method add

example/cpp11/invocation/prioritised_handlers.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20public:
21 template <typename Function>
22 void add(int priority, Function function)
23 {
24 std::unique_ptr<queued_handler_base> handler(
25 new queued_handler<Function>(
26 priority, std::move(function)));
27
28 handlers_.push(std::move(handler));
29 }
30
31 void execute_all()
32 {

Callers 7

serverMethod · 0.45
serverMethod · 0.45
mainFunction · 0.45
serverMethod · 0.45
dispatchMethod · 0.45
postMethod · 0.45
deferMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected