How to make the arc object Send?


I am trying to use the rust sdl bndings and found that the crate gives only Rc objects. I wanted to use threading for various reasons and I would like to know, what is the best way to make the Rc object be Send so that I can use it from a thread.


My guess is the SDL objects themselves aren’t Send either. What do you intend to do on the background threads? Instead of trying to send SDL objects there, you can try setting up an mpsc channel that can do some stuff in the background and send messages to the foreground to be processed/applied to SDL objects.