diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-05-22 15:23:51 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-05-22 15:23:51 +1000 |
| commit | 5ac4d3949cd7430e0d4c994bbc528e8e4fa91337 (patch) | |
| tree | dcd30c252e45afa20f084e1a58cbabd861ca299c /src/database/include/env_esp.hpp | |
| parent | b320a6a863cf1c10dc79254af41f573730935564 (diff) | |
| download | tangara-fw-5ac4d3949cd7430e0d4c994bbc528e8e4fa91337.tar.gz | |
Generalise worker tasks, and centralise task priorities + stacks
Includes making the display driver use a worker task for flushes, so
that our double buffering actually does something useful /facepalm
Diffstat (limited to 'src/database/include/env_esp.hpp')
| -rw-r--r-- | src/database/include/env_esp.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/database/include/env_esp.hpp b/src/database/include/env_esp.hpp index cf5a20e1..6a415ce6 100644 --- a/src/database/include/env_esp.hpp +++ b/src/database/include/env_esp.hpp @@ -1,5 +1,6 @@ #pragma once +#include <memory> #include <mutex> #include <set> #include <string> @@ -7,8 +8,12 @@ #include "leveldb/env.h" #include "leveldb/status.h" +#include "tasks.hpp" + namespace leveldb { +extern std::weak_ptr<tasks::Worker> sBackgroundThread; + // Tracks the files locked by EspEnv::LockFile(). // // We maintain a separate set instead of relying on fcntl(F_SETLK) because |
