/// Called by external software to set a function for checking system events, yielding cpu time for coopertative multitasking, etc
/// This function is optional. It is often used as a way to 'turn off' Csound, allowing it to exit gracefully.
/// In addition, some operations like utility analysis routines are not reentrant
/// and you should use this function to do any kind of updating during the operation.
/// # Returns
/// If this callback returns *false* it wont be called anymore
Called by external software to set a function for checking system events, yielding cpu time for coopertative multitasking, etc
This function is optional. It is often used as a way to 'turn off' Csound, allowing it to exit gracefully.
In addition, some operations like utility analysis routines are not reentrant
and you should use this function to do any kind of updating during the operation.
Called by external software to set a function for checking system events yielding cpu time for coopertative multitasking etc This function is optional . It is often used as a way to ' turn off ' Csound allowing it to exit gracefully . In addition some operations like utility analysis routines are not reentrant and you should use this function to do any kind of updating during the operation .
pub fn yield_callback<'c, F>(&self, f: F)
    where
        F: FnMut() -> bool + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_yield_cb(self.engine.csound, f);
        }
    }
pub fn yield_callback < ' c , F > ( & self , f : F ) where F : FnMut ( ) -> bool + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_yield_cb ( self . engine . csound , f ) ; } }
Called by external software to set a function for checking system events, yielding cpu time for coopertative multitasking, etc
This function is optional.
Called by external software to set a function for checking system events yielding cpu time for coopertative multitasking etc This function is optional .
If this callback returns *false* it wont be called anymore
If this callback returns * false * it wont be called anymore
&self
f
F