You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: