pub type bgworker_main_type = Option<unsafe extern "C" fn(main_arg: Datum)>;