From 80d7df910987db5201402fe987124f29f09344f3 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 25 Jul 2023 17:42:36 +1000 Subject: fuck off --- src/tasks/tasks.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/tasks/tasks.cpp') diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index 7365813e..abce0bde 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -26,6 +26,10 @@ auto Name() -> std::string { return "DISPLAY"; } template <> +auto Name() -> std::string { + return "FSTREAMER"; +} +template <> auto Name() -> std::string { return "AUDIO"; } @@ -65,6 +69,14 @@ auto AllocateStack() -> cpp::span { return {static_cast(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)), size}; } + +template <> +auto AllocateStack() -> cpp::span { + std::size_t size = 4 * 1024; + return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), + size}; +} + // Leveldb is designed for non-embedded use cases, where stack space isn't so // much of a concern. It therefore uses an eye-wateringly large amount of stack. template <> @@ -110,6 +122,11 @@ template <> auto Priority() -> UBaseType_t { return 9; } + +template <> +auto Priority() -> UBaseType_t { + return 10; +} // Database interactions are all inherently async already, due to their // potential for disk access. The user likely won't notice or care about a // couple of ms extra delay due to scheduling, so give this task the lowest -- cgit v1.2.3