pub unsafe extern "C" fn composer_init(threads: int64_t, piece_size: int64_t) {
    // Init the logging module.
    init_logging();

    // Register the SIGBUS signal handler.
    let mut state = STATE.lock().unwrap();
    state.memory_manager.register_sigbus_handler(sigbus_handler)
        .expect("Could not register SIGBUS handler");

    // Enable lazy execution.
    state.task_manager.evaluate = false;
    state.task_manager.threads = threads;

    // TODO This should be discovered dynamically.
    // TODO No longer needed! This just sets the initial size.
    state.task_manager.init_task_size = piece_size as usize;
}
/// Initialize the composer runtime. This should be called before any of the other composer
/// functions.
Initialize the composer runtime. This should be called before any of the other composer
functions.
Initialize the composer runtime . This should be called before any of the other composer functions .
pub unsafe extern "C" fn composer_init(threads: int64_t, piece_size: int64_t) {
    // Init the logging module.
    init_logging();
    // Register the SIGBUS signal handler.
    let mut state = STATE.lock().unwrap();
    state.memory_manager.register_sigbus_handler(sigbus_handler)
        .expect("Could not register SIGBUS handler");
    // Enable lazy execution.
    state.task_manager.evaluate = false;
    state.task_manager.threads = threads;
    // TODO This should be discovered dynamically.
    // TODO No longer needed! This just sets the initial size.
    state.task_manager.init_task_size = piece_size as usize;
}
pub unsafe extern " " fn composer_init ( threads : int64_t , piece_size : int64_t ) { // Init the logging module. init_logging ( ) ; // Register the SIGBUS signal handler. let mut state = STATE . lock ( ) . unwrap ( ) ; state . memory_manager . register_sigbus_handler ( sigbus_handler ) . expect ( " " ) ; // Enable lazy execution. state . task_manager . evaluate = false ; state . task_manager . threads = threads ; // TODO This should be discovered dynamically. // TODO No longer needed! This just sets the initial size. state . task_manager . init_task_size = piece_size as usize ; }
Initialize the composer runtime.
Initialize the composer runtime .
threads
int64_t
piece_size
int64_t