I'm trying to use Loom to test a concurrent byte ring buffer, but it currently doesn't have an equivalent of core::cell::SyncUnsafeCell (which I use to hold the buffer so that the readers and writer can borrow different byte ranges).
NB: This project is also affected by #156, since the writer uses a weak reference to detect when the readers have been dropped.
loom does not usually provide an equivalent of the standard library's unstable API. And you can easily implement this by writing a simple wrapper of UnsafeCell.
I'm trying to use Loom to test a concurrent byte ring buffer, but it currently doesn't have an equivalent of
core::cell::SyncUnsafeCell
(which I use to hold the buffer so that the readers and writer can borrow different byte ranges).NB: This project is also affected by #156, since the writer uses a weak reference to detect when the readers have been dropped.