Skip to content

Commit ec90152

Browse files
committed
fixup! feat: wrapper for ngx_rbtree_t
1 parent e769e7b commit ec90152

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/core/rbtree.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,19 @@ where
336336
};
337337
}
338338
}
339+
340+
unsafe impl<K, V, A> Send for RbTree<K, V, A>
341+
where
342+
A: Send + Allocator,
343+
K: Send,
344+
V: Send,
345+
{
346+
}
347+
348+
unsafe impl<K, V, A> Sync for RbTree<K, V, A>
349+
where
350+
A: Sync + Allocator,
351+
K: Sync,
352+
V: Sync,
353+
{
354+
}

0 commit comments

Comments
 (0)