mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-29 09:07:17 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -34,35 +34,34 @@
|
|||
#include <utility>
|
||||
|
||||
class CaptureThread {
|
||||
public:
|
||||
CaptureThread(
|
||||
std::unique_ptr<stream::Writer> writer,
|
||||
size_t write_size,
|
||||
size_t buffer_count,
|
||||
std::function<void()> success_callback,
|
||||
std::function<void(File::Error)> error_callback
|
||||
);
|
||||
~CaptureThread();
|
||||
public:
|
||||
CaptureThread(
|
||||
std::unique_ptr<stream::Writer> writer,
|
||||
size_t write_size,
|
||||
size_t buffer_count,
|
||||
std::function<void()> success_callback,
|
||||
std::function<void(File::Error)> error_callback);
|
||||
~CaptureThread();
|
||||
|
||||
CaptureThread(const CaptureThread&) = delete;
|
||||
CaptureThread(CaptureThread&&) = delete;
|
||||
CaptureThread& operator=(const CaptureThread&) = delete;
|
||||
CaptureThread& operator=(CaptureThread&&) = delete;
|
||||
CaptureThread(const CaptureThread&) = delete;
|
||||
CaptureThread(CaptureThread&&) = delete;
|
||||
CaptureThread& operator=(const CaptureThread&) = delete;
|
||||
CaptureThread& operator=(CaptureThread&&) = delete;
|
||||
|
||||
const CaptureConfig& state() const {
|
||||
return config;
|
||||
}
|
||||
const CaptureConfig& state() const {
|
||||
return config;
|
||||
}
|
||||
|
||||
private:
|
||||
CaptureConfig config;
|
||||
std::unique_ptr<stream::Writer> writer;
|
||||
std::function<void()> success_callback;
|
||||
std::function<void(File::Error)> error_callback;
|
||||
Thread* thread { nullptr };
|
||||
private:
|
||||
CaptureConfig config;
|
||||
std::unique_ptr<stream::Writer> writer;
|
||||
std::function<void()> success_callback;
|
||||
std::function<void(File::Error)> error_callback;
|
||||
Thread* thread{nullptr};
|
||||
|
||||
static msg_t static_fn(void* arg);
|
||||
static msg_t static_fn(void* arg);
|
||||
|
||||
Optional<File::Error> run();
|
||||
Optional<File::Error> run();
|
||||
};
|
||||
|
||||
#endif/*__CAPTURE_THREAD_H__*/
|
||||
#endif /*__CAPTURE_THREAD_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue