We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4484d commit 76bd1c4Copy full SHA for 76bd1c4
src/sys/event.rs
@@ -191,6 +191,15 @@ pub fn kqueue() -> Result<RawFd> {
191
Errno::result(res)
192
}
193
194
+
195
+/*
196
+ * KEvent can't derive Send because on some operating systems, udata is defined
197
+ * as a void*. However, KEvent's public API always treats udata as a uintptr_t,
198
+ * which is safe to Send.
199
+ */
200
+unsafe impl Send for KEvent {
201
+}
202
203
impl KEvent {
204
pub fn new(ident: uintptr_t, filter: EventFilter, flags: EventFlag,
205
fflags:FilterFlag, data: intptr_t, udata: uintptr_t) -> KEvent {
0 commit comments