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:
parent
bf134b2ff9
commit
16396d3583
1 changed files with 32 additions and 38 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{sync::Arc, thread};
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
use app_state::AppState;
|
||||
|
|
@ -21,9 +21,6 @@ fn init(app_state: Arc<AppState>, cx: &mut AppContext) -> Result<()> {
|
|||
}
|
||||
|
||||
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 = App::new().with_assets(Assets);
|
||||
|
|
@ -62,9 +59,6 @@ fn main() {
|
|||
})
|
||||
.detach();
|
||||
});
|
||||
})
|
||||
.unwrap();
|
||||
join_handle.join().unwrap();
|
||||
}
|
||||
|
||||
fn quit(_: &Quit, cx: &mut AppContext) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue