arc-swap icon indicating copy to clipboard operation
arc-swap copied to clipboard

no_std

Open mio-19 opened this issue 3 years ago • 4 comments

mio-19 avatar Jun 17 '21 23:06 mio-19

Hello

Maybe I don't fully understand the intention here, but when I was thinking about no-std support, I concluded that it's not actually useful for this crate as it is primarily a thread-synchronization primitive and threads are in std.

Is there a particular use case you have in mind, or is this just an „exercise“?

vorner avatar Jun 18 '21 05:06 vorner

Maybe I don't fully understand the intention here, but when I was thinking about no-std support, I concluded that it's not actually useful for this crate as it is primarily a thread-synchronization primitive and threads are in std.

Arc is in alloc and atomic is in core, which is a thread-synchronization primitive.

Is there a particular use case you have in mind, or is this just an „exercise“?

A particular use case is linux kernel module.

mio-19 avatar Jun 19 '21 00:06 mio-19

A particular use case is linux kernel module.

That sounds like that'll be worth the extra maintenance burden, then. I'll find some free time to go over it, hopefully soon ‒ thought that might be few days, I'm a bit busy right now.

vorner avatar Jun 19 '21 19:06 vorner

Hmm, this seems to have fell asleep a bit. Anyone else wants to take it from here and get it over the finish line? I could try taking it upon myself, but it's not exactly on the top of my priority list right now 😈

vorner avatar Oct 07 '21 06:10 vorner