NobodyXu commented on PR #2192: URL: https://github.com/apache/incubator-opendal/pull/2192#issuecomment-1537037849
> I have a question about the `Arc`. Here we use the `get_mut` to determine memory boundaries. I look the implemetation of `Arc`, it use `Acquire` in `get_mut` and `Release` in `Drop`. This is the correct behavior. But is this behavior strictly regulated in the documentation? It has to since Arc is designed to be used in muti thread context, implementing Send + Sync. > I havn't found that. Maybe it's better to use `AtomicBool` with self-defined memory order. Better not, it's unlikely we can come up with sth. better than std lib, not to mention the extra unsafe keywords required manually implementing Arc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
