Fixed for a futex race conditon and infinite polling

This commit is contained in:
Johnathan Sharratt
2023-01-19 01:02:51 +11:00
parent 7e1e9fa06b
commit 30ec91d489
6 changed files with 156 additions and 178 deletions

View File

@@ -177,7 +177,7 @@ pub trait VirtualNetworking: fmt::Debug + Send + Sync + 'static {
pub type DynVirtualNetworking = Arc<dyn VirtualNetworking>;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct SocketReceive {
/// Data that was received
pub data: Bytes,
@@ -185,7 +185,7 @@ pub struct SocketReceive {
pub truncated: bool,
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct SocketReceiveFrom {
/// Data that was received
pub data: Bytes,