Core: thread allocation shortcut (#2007)
* Core: thread alloc+set shortcut * Apps: use thread allocation shortcut * Mark some service threads as services * Init BT as soon as possible Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -367,11 +367,7 @@ BrowserWorker*
|
||||
browser->skip_assets = skip_assets;
|
||||
browser->path_next = furi_string_alloc_set(path);
|
||||
|
||||
browser->thread = furi_thread_alloc();
|
||||
furi_thread_set_name(browser->thread, "BrowserWorker");
|
||||
furi_thread_set_stack_size(browser->thread, 2048);
|
||||
furi_thread_set_context(browser->thread, browser);
|
||||
furi_thread_set_callback(browser->thread, browser_worker);
|
||||
browser->thread = furi_thread_alloc_ex("BrowserWorker", 2048, browser_worker, browser);
|
||||
furi_thread_start(browser->thread);
|
||||
|
||||
return browser;
|
||||
|
Reference in New Issue
Block a user