| 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 | }; |
no test coverage detected