feat: switch to multi-threaded Tokio runtime in sdxr_start for improved performance

This commit is contained in:
MayaTheShy
2025-11-08 14:55:45 -05:00
parent 5b8713ce4f
commit 3536d4e44f

View File

@@ -125,8 +125,8 @@ pub extern "C" fn sdxr_start(app_id: *const std::os::raw::c_char) -> i32 {
let shared_state = Arc::new(Mutex::new(BridgeState::default()));
let shared_for_commands = Arc::clone(&shared_state);
// Build a single-threaded Tokio runtime for the client
let rt = tokio::runtime::Builder::new_current_thread()
// Build a multi-threaded Tokio runtime for the client
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.expect("tokio runtime");