shared-mutex 0.1.0

A RwLock that can be used with a Condvar.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
can't have map if you have upgrade from read to write?

sharedmutex<hashmap<k, v>>

get lock as SharedMutexReadLock (contains &UnsafeCell<HashMap<K, V>>)
map to V, now contains &UnsafeCell<V>? that doesn't sound right

wait mutex map is broken in the presence of condvar generally speaking

get lock around &mut V, which is pointer into the hashmap
wait in one thread, in the other clear hashmap, bang use-after-free