Revert "Set the stack size of the main thread to 8M (#227)" is not work on macOS.

This reverts commit 2f80ba408a.
This commit is contained in:
Jason Lee 2024-09-09 13:34:31 +08:00
parent bf134b2ff9
commit 16396d3583

View file

@ -1,4 +1,4 @@
use std::{sync::Arc, thread}; use std::sync::Arc;
use anyhow::Result; use anyhow::Result;
use app_state::AppState; use app_state::AppState;
@ -21,9 +21,6 @@ fn init(app_state: Arc<AppState>, cx: &mut AppContext) -> Result<()> {
} }
fn main() { fn main() {
let join_handle = thread::Builder::new()
.stack_size(8 * 1024 * 1024) // Set the stack size to 8MB
.spawn(|| {
let app_state = Arc::new(AppState {}); let app_state = Arc::new(AppState {});
let app = App::new().with_assets(Assets); let app = App::new().with_assets(Assets);
@ -62,9 +59,6 @@ fn main() {
}) })
.detach(); .detach();
}); });
})
.unwrap();
join_handle.join().unwrap();
} }
fn quit(_: &Quit, cx: &mut AppContext) { fn quit(_: &Quit, cx: &mut AppContext) {