From be9948ba07eea965758f4f9e0cd629bbb3d59147 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 11 Nov 2013 20:40:33 -0800 Subject: Remove externfn! --- lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib.rs') 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) { -- cgit v1.2.3