add comments for Sync/Send impl

This commit is contained in:
Andrew Poelstra 2018-07-24 21:18:03 +00:00
parent 2aeff4c62f
commit bc773fbdce
1 changed files with 2 additions and 0 deletions

View File

@ -402,7 +402,9 @@ pub struct Secp256k1<C> {
phantom: PhantomData<C>
}
// The underlying secp context does not contain any references to memory it does not own
unsafe impl<C> Send for Secp256k1<C> {}
// The API does not permit any mutation of `Secp256k1` objects except through `&mut` references
unsafe impl<C> Sync for Secp256k1<C> {}
impl<C> Clone for Secp256k1<C> {