mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Extract BufferExchange, simplify threading.
This commit is contained in:
parent
84334ef818
commit
5dfb53263a
6 changed files with 161 additions and 81 deletions
|
@ -48,16 +48,12 @@ public:
|
|||
return config;
|
||||
}
|
||||
|
||||
static void check_fifo_isr();
|
||||
|
||||
private:
|
||||
static constexpr auto event_mask_loop_wake = EVENT_MASK(0);
|
||||
|
||||
CaptureConfig config;
|
||||
std::unique_ptr<stream::Writer> writer;
|
||||
std::function<void()> success_callback;
|
||||
std::function<void(File::Error)> error_callback;
|
||||
static Thread* thread;
|
||||
Thread* thread;
|
||||
|
||||
static msg_t static_fn(void* arg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue