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

Method Poll

LibLemon/include/lemon/ipc/endpoint.h:115–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 inline long Poll(Message& m) const{
116 uint64_t id;
117 uint16_t size;
118 uint8_t* data = new uint8_t[msgSize];
119 long ret = EndpointDequeue(handle, &id, &size, data);
120
121 if(ret > 0){
122 m.Set(data, size, id);
123 } else {
124 delete[] data;
125 }
126 return ret;
127 }
128
129 inline long Call(const Message& call, Message& rmsg, uint64_t id) const{
130 uint16_t size = call.length();

Callers

nothing calls this directly

Calls 2

EndpointDequeueFunction · 0.85
SetMethod · 0.80

Tested by

no test coverage detected