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 implementing a SeqLock and the underlying data is behind an UnsafeCell. Concurrent readers with a single writer are required, since the readers will check on an atomic value after reading to see if the data was written to by the reader while they were reading, and discard the data in that case.
There can only be one writer though, multiple concurrent writers should still fail the test. However, for now I'm having to use a standard UnsafeCell because this use case is not supported in Loom. Would something like this be possible to implement in Loom?
The text was updated successfully, but these errors were encountered:
I'm implementing a SeqLock and the underlying data is behind an UnsafeCell. Concurrent readers with a single writer are required, since the readers will check on an atomic value after reading to see if the data was written to by the reader while they were reading, and discard the data in that case.
There can only be one writer though, multiple concurrent writers should still fail the test. However, for now I'm having to use a standard UnsafeCell because this use case is not supported in Loom. Would something like this be possible to implement in Loom?
The text was updated successfully, but these errors were encountered: