Skip to content

Commit 0f05f6c

Browse files
author
Mitchell Hentges
committed
Allow Controls to be "Send" between threads
1 parent 032aa2b commit 0f05f6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/src/controls.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ macro_rules! define_control {
2424
$ui_field: *mut $ui_type,
2525
}
2626

27+
unsafe impl ::std::marker::Send for $rust_type {
28+
29+
}
30+
2731
impl ::std::ops::Deref for $rust_type {
2832
type Target = ::controls::Control;
2933

0 commit comments

Comments
 (0)