register_provider

Function register_provider 

Source
pub unsafe fn register_provider(p: &'static dyn AccelProvider)
Expand description

Register a global acceleration provider.

ยงSafety

  • The caller must guarantee that p is valid for the entire program lifetime (e.g., a 'static singleton), as the runtime stores a raw reference globally.
  • Concurrent callers must ensure registration happens once or is properly synchronized; this function does not enforce thread-safety for re-registration.