MCPcopy Create free account
hub / github.com/apache/qpid-proton / add_credit

Method add_credit

cpp/src/receiver.cpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void receiver::add_credit(uint32_t credit) {
62 link_context &ctx = link_context::get(pn_object());
63 if (ctx.draining)
64 ctx.pending_credit += credit;
65 else
66 pn_link_flow(pn_object(), credit);
67}
68
69void receiver::drain() {
70 link_context &ctx = link_context::get(pn_object());

Callers 10

on_receiver_openMethod · 0.45
first_idleMethod · 0.45
second_idleMethod · 0.45
first_idleMethod · 0.45
second_idleMethod · 0.45
third_idleMethod · 0.45
on_receiver_openMethod · 0.45
on_receiver_openMethod · 0.45
receive_doneMethod · 0.45
run_stageMethod · 0.45

Calls 2

pn_link_flowFunction · 0.85
getFunction · 0.70

Tested by 7

on_receiver_openMethod · 0.36
first_idleMethod · 0.36
second_idleMethod · 0.36
first_idleMethod · 0.36
second_idleMethod · 0.36
third_idleMethod · 0.36
on_receiver_openMethod · 0.36