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

Method DequeueBlocking

Kernel/include/net/networkadapter.h:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37 }
38 virtual NetworkPacket DequeueBlocking() {
39 Scheduler::BlockCurrentThread(blocker, threadLock);
40
41 if(queue.get_length()){
42 return queue.remove_at(0);
43 } else {
44 return {nullptr, 0};
45 }
46 }
47
48 virtual ~NetworkAdapter() = default;
49 };

Callers 1

InterfaceThreadFunction · 0.80

Calls 3

BlockCurrentThreadFunction · 0.85
get_lengthMethod · 0.45
remove_atMethod · 0.45

Tested by

no test coverage detected