Using a skia_safe::core::surface::Surface in a multi-threaded envirnoment #939
Closed
FranciscoTorrinha
started this conversation in
General
Replies: 1 comment 1 reply
-
Never mind, the issue was on my part, all I had to do is implement Send + Sync for the struct which was holding the surface |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
So this might be a dumb question but I have ran into an issue using the skia_safe lib in a multi-threaded environment.
The current state is the following:
I have created an abstraction over skia_safe and I am now trying to use it an external context which implements Send + Sync. However rust does not allow me to do this since
Surface
does not implement Send + Sync, at first I assumed this could be an issue whereRCHandle
is a single thread ref counter but I noticed that other Structs wrapped around RCHandle are Send + Sync.My questions here are:
Surface
not being Send + SyncSurface
as Send + SyncThank you for your time,
Francisco
Beta Was this translation helpful? Give feedback.
All reactions