Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit ad0e9b7

Browse files
committed
Added a comment.
1 parent 783f46d commit ad0e9b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sysctl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ pub struct Sysctl<T: SysctlStorage> {
1515
header: *mut bindings::ctl_table_header,
1616
}
1717

18+
// This is safe because the only public method we have is get(), which returns
19+
// &T, and T: Sync. Any new methods must adhere to this requirement.
1820
unsafe impl<T: SysctlStorage> Sync for Sysctl<T> {}
1921

2022
pub trait SysctlStorage: Sync {

0 commit comments

Comments
 (0)