diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-25 17:42:36 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-25 17:43:12 +1000 |
| commit | 80d7df910987db5201402fe987124f29f09344f3 (patch) | |
| tree | 7e8c1e04ab40026087343efee95a771c7839b32f /src/tasks/tasks.hpp | |
| parent | 7b72e5479ee6d11f76c49f7463ba0e7f4e5165c5 (diff) | |
| download | tangara-fw-80d7df910987db5201402fe987124f29f09344f3.tar.gz | |
fuck off
Diffstat (limited to 'src/tasks/tasks.hpp')
| -rw-r--r-- | src/tasks/tasks.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tasks/tasks.hpp b/src/tasks/tasks.hpp index 4e5dfd17..742bb3cc 100644 --- a/src/tasks/tasks.hpp +++ b/src/tasks/tasks.hpp @@ -32,6 +32,8 @@ enum class Type { kUi, // Task for flushing graphics buffers to the display. kUiFlush, + // TODO. + kFileStreamer, // The main audio pipeline task. kAudio, // Task for running database queries. @@ -55,9 +57,9 @@ template <Type t> auto StartPersistent(const std::function<void(void)>& fn) -> void { StaticTask_t* task_buffer = new StaticTask_t; cpp::span<StackType_t> stack = AllocateStack<t>(); - xTaskCreateStatic(&PersistentMain, Name<t>().c_str(), stack.size(), - new std::function<void(void)>(fn), Priority<t>(), - stack.data(), task_buffer); + xTaskCreateStaticPinnedToCore(&PersistentMain, Name<t>().c_str(), + stack.size(), new std::function<void(void)>(fn), + Priority<t>(), stack.data(), task_buffer, 0); } class Worker { |
