File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ impl CFRunLoop {
146
146
declare_TCFType ! ( CFRunLoopTimer , CFRunLoopTimerRef ) ;
147
147
impl_TCFType ! ( CFRunLoopTimer , CFRunLoopTimerRef , CFRunLoopTimerGetTypeID ) ;
148
148
149
+ unsafe impl Send for CFRunLoopTimer { }
150
+ unsafe impl Sync for CFRunLoopTimer { }
151
+
149
152
impl CFRunLoopTimer {
150
153
pub fn new (
151
154
fireDate : CFAbsoluteTime ,
@@ -177,6 +180,9 @@ impl_TCFType!(
177
180
CFRunLoopSourceGetTypeID
178
181
) ;
179
182
183
+ unsafe impl Send for CFRunLoopSource { }
184
+ unsafe impl Sync for CFRunLoopSource { }
185
+
180
186
impl CFRunLoopSource {
181
187
pub fn from_file_descriptor ( fd : & CFFileDescriptor , order : CFIndex ) -> Option < CFRunLoopSource > {
182
188
fd. to_run_loop_source ( order)
@@ -190,6 +196,9 @@ impl_TCFType!(
190
196
CFRunLoopObserverGetTypeID
191
197
) ;
192
198
199
+ unsafe impl Send for CFRunLoopObserver { }
200
+ unsafe impl Sync for CFRunLoopObserver { }
201
+
193
202
#[ cfg( test) ]
194
203
mod test {
195
204
use super :: * ;
You can’t perform that action at this time.
0 commit comments