MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / CreatePair

Method CreatePair

Kernel/include/objects/message.h:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 static const uint16_t maxMessageSizeLimit = UINT16_MAX;
51
52 static Pair<FancyRefPtr<MessageEndpoint>,FancyRefPtr<MessageEndpoint>> CreatePair(uint16_t msgSize){
53 FancyRefPtr<MessageEndpoint> endpoint1 = FancyRefPtr<MessageEndpoint>(new MessageEndpoint(msgSize));
54 FancyRefPtr<MessageEndpoint> endpoint2 = FancyRefPtr<MessageEndpoint>(new MessageEndpoint(msgSize));
55
56 endpoint1->peer = endpoint2;
57 endpoint2->peer = endpoint1;
58
59 return {endpoint1, endpoint2};
60 }
61
62 MessageEndpoint(uint16_t maxSize);
63 ~MessageEndpoint();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected