File tree Expand file tree Collapse file tree 13 files changed +41
-1
lines changed Expand file tree Collapse file tree 13 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ glib::wrapper! {
41
41
#[ doc( alias = "cairo_font_options_t" ) ]
42
42
pub struct FontOptions ( ptr:: NonNull < ffi:: cairo_font_options_t > ) ;
43
43
44
+ unsafe impl Send for FontOptions { }
45
+ unsafe impl Sync for FontOptions { }
46
+
44
47
impl FontOptions {
45
48
#[ doc( alias = "cairo_font_options_create" ) ]
46
49
pub fn new ( ) -> Result < FontOptions , Error > {
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ manual_traits = ["PixbufAnimationExtManual"]
149
149
[[object ]]
150
150
name = " GdkPixbuf.PixbufFormat"
151
151
status = " generate"
152
+ concurrency = " send+sync"
152
153
[[object .function ]]
153
154
pattern = " get_.+"
154
155
[[object .function .parameter ]]
Original file line number Diff line number Diff line change @@ -112,3 +112,6 @@ impl PixbufFormat {
112
112
}
113
113
}
114
114
}
115
+
116
+ unsafe impl Send for PixbufFormat { }
117
+ unsafe impl Sync for PixbufFormat { }
Original file line number Diff line number Diff line change @@ -1280,6 +1280,7 @@ manual_traits = ["UnixInputStreamExtManual"]
1280
1280
name = " Gio.UnixMountEntry"
1281
1281
status = " generate"
1282
1282
version = " 2.54"
1283
+ concurrency = " send+sync"
1283
1284
cfg_condition = " unix"
1284
1285
[[object .derive ]]
1285
1286
name = " Debug"
@@ -1288,6 +1289,7 @@ cfg_condition = "unix"
1288
1289
name = " Gio.UnixMountPoint"
1289
1290
status = " generate"
1290
1291
version = " 2.54"
1292
+ concurrency = " send+sync"
1291
1293
cfg_condition = " unix"
1292
1294
[[object .derive ]]
1293
1295
name = " Debug"
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ glib::wrapper! {
12
12
type_ => || ffi:: g_unix_mount_entry_get_type( ) ,
13
13
}
14
14
}
15
+
16
+ unsafe impl Send for UnixMountEntry { }
17
+ unsafe impl Sync for UnixMountEntry { }
Original file line number Diff line number Diff line change @@ -172,3 +172,6 @@ impl Ord for UnixMountPoint {
172
172
self . compare ( other) . cmp ( & 0 )
173
173
}
174
174
}
175
+
176
+ unsafe impl Send for UnixMountPoint { }
177
+ unsafe impl Sync for UnixMountPoint { }
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ generate = [
29
29
" Pango.FontsetSimple" ,
30
30
" Pango.Glyph" ,
31
31
" Pango.GlyphItem" ,
32
- " Pango.GlyphString" ,
33
32
" Pango.GlyphUnit" ,
34
33
" Pango.Gravity" ,
35
34
" Pango.GravityHint" ,
@@ -123,6 +122,7 @@ status = "generate"
123
122
[[object ]]
124
123
name = " Pango.Attribute"
125
124
status = " generate"
125
+ concurrency = " send+sync"
126
126
[[object .function ]]
127
127
name = " init"
128
128
# irrelevant with all the constructors and unusable like this
@@ -256,6 +256,7 @@ status = "generate"
256
256
[[object ]]
257
257
name = " Pango.FontDescription"
258
258
status = " generate"
259
+ concurrency = " send+sync"
259
260
[[object .function ]]
260
261
name = " from_string"
261
262
[object .function .return ]
@@ -290,6 +291,11 @@ status = "generate"
290
291
# converted to proper constructors
291
292
manual = true
292
293
294
+ [[object ]]
295
+ name = " Pango.GlyphString"
296
+ status = " generate"
297
+ concurrency = " send+sync"
298
+
293
299
[[object ]]
294
300
name = " Pango.Layout"
295
301
status = " generate"
@@ -341,6 +347,7 @@ status = "generate"
341
347
[[object ]]
342
348
name = " Pango.TabArray"
343
349
status = " generate"
350
+ concurrency = " send+sync"
344
351
[[object .function ]]
345
352
pattern = " (to_string|get_decimal_point|get_positions_in_pixels|get_tab)"
346
353
[[object .function .parameter ]]
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ macro_rules! define_attribute_struct {
90
90
}
91
91
}
92
92
93
+ unsafe impl Send for $rust_type { }
94
+ unsafe impl Sync for $rust_type { }
95
+
93
96
#[ cfg( not( any( feature = "v1_44" , feature = "dox" ) ) ) ]
94
97
glib:: wrapper! {
95
98
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -48,3 +48,6 @@ impl PartialEq for Attribute {
48
48
}
49
49
50
50
impl Eq for Attribute { }
51
+
52
+ unsafe impl Send for Attribute { }
53
+ unsafe impl Sync for Attribute { }
Original file line number Diff line number Diff line change @@ -313,3 +313,6 @@ impl hash::Hash for FontDescription {
313
313
hash:: Hash :: hash ( & self . hash ( ) , state)
314
314
}
315
315
}
316
+
317
+ unsafe impl Send for FontDescription { }
318
+ unsafe impl Sync for FontDescription { }
You can’t perform that action at this time.
0 commit comments