aboutsummaryrefslogtreecommitdiff
path: root/lib.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2013-11-11 20:40:33 -0800
committerSteven Fackler <[email protected]>2013-11-11 20:40:33 -0800
commitbe9948ba07eea965758f4f9e0cd629bbb3d59147 (patch)
treec257842b77205356fef45203ddc55da12415acc5 /lib.rs
parentRun tests single threaded (diff)
downloadrust-openssl-be9948ba07eea965758f4f9e0cd629bbb3d59147.tar.xz
rust-openssl-be9948ba07eea965758f4f9e0cd629bbb3d59147.zip
Remove externfn!
Diffstat (limited to 'lib.rs')
-rw-r--r--lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib.rs b/lib.rs
index cc1d7ef6..f69fcf0e 100644
--- a/lib.rs
+++ b/lib.rs
@@ -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) {