[][src]Function mmal_sys::vcos_once

pub unsafe extern "C" fn vcos_once(
    once_control: *mut VCOS_ONCE_T,
    init_routine: Option<unsafe extern "C" fn()>
) -> VCOS_STATUS_T

\file vcos_once.h

Ensure something is called only once.

Initialize once_control to VCOS_ONCE_INIT. The first time this is called, the init_routine will be called. Thereafter it won't.

\sa pthread_once()