mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp: uring: change SendBuffer unsafe declarations, add comments
This commit is contained in:
parent
f84d80a7e7
commit
f89bdce7f0
2 changed files with 38 additions and 30 deletions
|
|
@ -320,8 +320,13 @@ impl SocketWorker {
|
|||
response_counter.fetch_add(1, Ordering::Relaxed);
|
||||
}
|
||||
|
||||
self.send_buffers
|
||||
.mark_index_as_free(send_buffer_index as usize);
|
||||
// Safety: OK because cqe using buffer has been
|
||||
// returned and contents will no longer be accessed
|
||||
// by kernel
|
||||
unsafe {
|
||||
self.send_buffers
|
||||
.mark_index_as_free(send_buffer_index as usize);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue