Impl `Send` and `Sync` for secp256k1 contexts

This commit is contained in:
Andrew Poelstra 2015-04-13 20:41:24 -05:00
parent fb75373b47
commit d7c7230f28
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ struct ContextInner;
#[derive(Copy, Clone, Debug)]
pub struct Context(*mut ContextInner);
unsafe impl Send for Context {}
unsafe impl Sync for Context {}
#[link(name = "secp256k1")]
extern "C" {
pub static secp256k1_nonce_function_rfc6979: NonceFn;