andrew-d / leveldb-rs

Bindings to LevelDB for Rust
6 stars 5 forks source link

impl Send & Sync for DB #5

Closed astro closed 7 years ago

astro commented 9 years ago

LevelDB is supposedly usable from multiple threads. This would allow it.

I actually wanted to impl Copy for DB but it doesn't work out because impl Drop for Arc<T> conflicts with that. So right now users have to manually db.clone() in order to share with multiple threads.

skade commented 7 years ago

Thanks!

astro commented 7 years ago

Thank you for merging.