summaryrefslogtreecommitdiff
path: root/src/tasks/tasks.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-07 10:37:12 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-07 10:37:12 +1100
commit1f031f565ad0472781d5d3a0a0ad96456e0dbfbb (patch)
treec69464c2667c03d9924ff66b913c092dd4fe3ac8 /src/tasks/tasks.cpp
parent499d5a942fc2ad0149b0a16e978e090336dd8319 (diff)
downloadtangara-fw-1f031f565ad0472781d5d3a0a0ad96456e0dbfbb.tar.gz
Rename the db background task to be more generic
Diffstat (limited to 'src/tasks/tasks.cpp')
-rw-r--r--src/tasks/tasks.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp
index 8ff57d4a..981ee20a 100644
--- a/src/tasks/tasks.cpp
+++ b/src/tasks/tasks.cpp
@@ -36,8 +36,8 @@ auto Name<Type::kDatabase>() -> std::pmr::string {
return "db_fg";
}
template <>
-auto Name<Type::kDatabaseBackground>() -> std::pmr::string {
- return "db_bg";
+auto Name<Type::kBackgroundWorker>() -> std::pmr::string {
+ return "bg_worker";
}
template <Type t>
@@ -77,7 +77,7 @@ auto AllocateStack<Type::kDatabase>() -> cpp::span<StackType_t> {
size};
}
template <>
-auto AllocateStack<Type::kDatabaseBackground>() -> cpp::span<StackType_t> {
+auto AllocateStack<Type::kBackgroundWorker>() -> cpp::span<StackType_t> {
std::size_t size = 256 * 1024;
return {static_cast<StackType_t*>(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)),
size};
@@ -119,7 +119,7 @@ auto Priority<Type::kDatabase>() -> UBaseType_t {
return 2;
}
template <>
-auto Priority<Type::kDatabaseBackground>() -> UBaseType_t {
+auto Priority<Type::kBackgroundWorker>() -> UBaseType_t {
return 1;
}
@@ -131,7 +131,7 @@ auto WorkerQueueSize<Type::kDatabase>() -> std::size_t {
return 8;
}
template <>
-auto WorkerQueueSize<Type::kDatabaseBackground>() -> std::size_t {
+auto WorkerQueueSize<Type::kBackgroundWorker>() -> std::size_t {
return 8;
}