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

Method Destroy

Kernel/src/objects/message.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void MessageEndpoint::Destroy(){
27 Message m;
28 while(queue.Dequeue(&m, 1)){
29 if(m.size > 8 && m.dataP){
30 delete[] m.dataP;
31 }
32 }
33
34 if(peer.get()){
35 peer->peer = nullptr;
36 }
37}
38
39int64_t MessageEndpoint::Read(uint64_t* id, uint16_t* size, uint64_t* data){
40 assert(id);

Callers

nothing calls this directly

Calls 2

DequeueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected