MCPcopy Create free account
hub / github.com/apple/foundationdb / insertWellKnown

Method insertWellKnown

fdbrpc/FlowTransport.actor.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void EndpointMap::insertWellKnown(NetworkMessageReceiver* r, const Endpoint::Token& token, TaskPriority priority) {
114 int index = token.second();
115 ASSERT(index <= wellKnownEndpointCount);
116 ASSERT(data[index].receiver == nullptr);
117 data[index].receiver = r;
118 data[index].token() =
119 Endpoint::Token(token.first(), (token.second() & 0xffffffff00000000LL) | static_cast<uint32_t>(priority));
120}
121
122void EndpointMap::insert(NetworkMessageReceiver* r, Endpoint::Token& token, TaskPriority priority) {
123 if (firstFree == uint32_t(-1))

Callers 4

PingReceiverMethod · 0.80
addWellKnownEndpointMethod · 0.80

Calls 3

firstMethod · 0.80
TokenClass · 0.50
secondMethod · 0.45

Tested by

no test coverage detected