gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

[FEATURE REQUEST] Mark gio::Icon as Send and Sync

Open kavan-mevada opened this issue 2 years ago • 3 comments

kavan-mevada avatar Mar 09 '22 18:03 kavan-mevada

Someone will need to check if the C implementation of those types is guaranteed to be thread-safe, always.

sdroege avatar Mar 10 '22 07:03 sdroege

GBytesIcon has a simple pointer for the bytes and uses memcmp when using equal with the given pointers. It seems obvious that changing pointers when memcmp is running makes its results obsolete. Other types also has direct pointer assignment for main content pointers.

AbuShawarib avatar Jul 26 '23 05:07 AbuShawarib

The question is not whether a single implementation of the interface is Send+Sync but if all valid implementations of the interface must be Send+Sync.

sdroege avatar Aug 07 '23 12:08 sdroege