Skip to content

Commit

Permalink
add unsafe impl Send/Sync for IoCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhong1 committed Mar 31, 2021
1 parent 1267417 commit 54fbd50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ceph.rs
Original file line number Diff line number Diff line change
@@ -335,6 +335,10 @@ pub struct IoCtx {
ioctx: rados_ioctx_t,
}

unsafe impl Send for IoCtx {}
unsafe impl Sync for IoCtx {}


impl Drop for IoCtx {
fn drop(&mut self) {
if !self.ioctx.is_null() {

0 comments on commit 54fbd50

Please sign in to comment.