MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_initialize_locked

Function lean_initialize_locked

src/init.rs:50–53  ·  view source on GitHub ↗

A helper function to call [`lean_initialize`] while holding the [`LEAN_INIT_MUTEX`]./// This is equivalent to writing ```rust # use lean_sys::*; unsafe { let guard = LEAN_INIT_MUTEX.lock(); lean_initialize(); } ``` TODO: is this safe?

()

Source from the content-addressed store, hash-verified

48/// ```
49//TODO: is this safe?
50pub unsafe fn lean_initialize_locked() {
51 let _guard = LEAN_INIT_MUTEX.lock();
52 lean_initialize();
53}
54
55extern "C" {
56 pub fn lean_initialize_runtime_module();

Callers 1

Calls

no outgoing calls

Tested by 1