Mutex and RwLock could be nicer if we had a compiler backed marker trait for function that says CannotPanic. cannot_be_poisoned_rwlock.read().map(cannot_panic_function);
-
-
Replying to @fulmicoton
It does seems that the SharedLock of crossbeam doesn’t let the user know if it has been poisoned, is it because it cannot?
@stjepang2 replies 0 retweets 0 likes
Replying to @Kerollmops @fulmicoton
It can, I've just yesterday submitted a PR that implements poisoning and makes the interface of ShardedLock exactly the same as a regular RwLock :)
1:30 AM - 23 Jan 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.