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:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -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__*/