Function std::sys::windows::compat::init

source ·
unsafe extern "C" fn init()
Expand description

Preload some imported functions.

Note that any functions included here will be unconditionally loaded in the final binary, regardless of whether or not they’re actually used.

Therefore, this should be limited to compat_fn_optional functions which must be preloaded or any functions where lazier loading demonstrates a negative performance impact in practical situations.

Currently we only preload WaitOnAddress and WakeByAddressSingle.