pub unsafe fn register_provider(p: &'static dyn AccelProvider)Expand description
Register a global acceleration provider.
ยงSafety
- The caller must guarantee that
pis valid for the entire program lifetime (e.g., a'staticsingleton), 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.