mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 08:37:17 -04:00
Better encapsulation
This commit is contained in:
parent
24c670c07c
commit
048c5c445d
@ -73,6 +73,10 @@ struct layer {
|
||||
|
||||
private:
|
||||
network::udp::layer* parent;
|
||||
|
||||
std::atomic<bool> listening;
|
||||
circular_buffer<network::ethernet::packet, 16> packets;
|
||||
condition_variable listen_queue;
|
||||
};
|
||||
|
||||
} // end of dns namespace
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
namespace {
|
||||
|
||||
std::atomic<bool> listening;
|
||||
circular_buffer<network::ethernet::packet, 16> packets;
|
||||
condition_variable listen_queue;
|
||||
|
||||
void prepare_packet(network::ethernet::packet& packet, network::interface_descriptor& interface) {
|
||||
packet.tag(3, packet.index);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user