-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Send
shared resource container for thumbv6m-none-eabi
target
#800
Comments
Hi, The only way to have non- Hope that helps! |
We need access to the same |
Hi, The |
Did you figure this out by using the Arbiter? |
No, @korken89's recommendation is more about how to avoid the problem. Sometimes I have a non-static struct that needs one simple field and one shared field, so it can't be either static or immutable I add the |
I found a portable-atomic-util crate that provides the |
Hi,
I want to define a shareable mutable container like
Rc<RefCell>
and store that in the#[shared]
struct. ButRc<RefCell>
is notSend
.Then I tried to use the
Arbiter
struct. It's notClone
so I have to wrap it inArc
.Arc<Arbiter>
is working as expected. butArc
is not Implemented for thethumbv6m-none-eabi
target.I also tried
&Arbiter
, but it forced me to have a lifetime for my struct. which cause lifetime error when used by Mutex:What is the best alternative for the
Rc<RefCell>
for thethumbv6m-none-eabi
target?I created a sample repo with multiple implementations.
The text was updated successfully, but these errors were encountered: