Preload extmainapps

This commit is contained in:
Willy-JL
2023-05-28 00:27:58 +01:00
parent d325a1a43e
commit fc56e39075
8 changed files with 121 additions and 31 deletions

View File

@@ -236,6 +236,15 @@ FuriThread* flipper_application_spawn(FlipperApplication* app, void* args) {
return app->thread;
}
void flipper_application_despawn(FlipperApplication* app) {
furi_check(app->thread != NULL);
furi_check(!flipper_application_is_plugin(app));
furi_thread_join(app->thread);
furi_thread_free(app->thread);
app->thread = NULL;
}
static const char* preload_status_strings[] = {
[FlipperApplicationPreloadStatusSuccess] = "Success",
[FlipperApplicationPreloadStatusUnspecifiedError] = "Unknown error",
@@ -289,4 +298,4 @@ const FlipperAppPluginDescriptor*
lib_descriptor->ep_api_version);
return lib_descriptor;
}
}