diff options
| author | Steven Fackler <[email protected]> | 2013-11-11 20:40:33 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2013-11-11 20:40:33 -0800 |
| commit | be9948ba07eea965758f4f9e0cd629bbb3d59147 (patch) | |
| tree | c257842b77205356fef45203ddc55da12415acc5 /lib.rs | |
| parent | Run tests single threaded (diff) | |
| download | rust-openssl-be9948ba07eea965758f4f9e0cd629bbb3d59147.tar.xz rust-openssl-be9948ba07eea965758f4f9e0cd629bbb3d59147.zip | |
Remove externfn!
Diffstat (limited to 'lib.rs')
| -rw-r--r-- | lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -25,11 +25,7 @@ static mut FINISHED_INIT: AtomicBool = INIT_ATOMIC_BOOL; static mut VERIFY_IDX: AtomicInt = INIT_ATOMIC_INT; -/// Initializes the library. -/// -/// This does not need to be manually called. It will automatically be called -/// when needed. Can be safely called multiple times on different threads. -pub fn init() { +fn init() { unsafe { if STARTED_INIT.swap(true, Acquire) { while !FINISHED_INIT.load(Release) { |