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

@ -35,41 +35,40 @@
#include <utility>
class ReplayThread {
public:
ReplayThread(
std::unique_ptr<stream::Reader> reader,
size_t read_size,
size_t buffer_count,
bool* ready_signal,
std::function<void(uint32_t return_code)> terminate_callback
);
~ReplayThread();
public:
ReplayThread(
std::unique_ptr<stream::Reader> reader,
size_t read_size,
size_t buffer_count,
bool* ready_signal,
std::function<void(uint32_t return_code)> terminate_callback);
~ReplayThread();
ReplayThread(const ReplayThread&) = delete;
ReplayThread(ReplayThread&&) = delete;
ReplayThread& operator=(const ReplayThread&) = delete;
ReplayThread& operator=(ReplayThread&&) = delete;
ReplayThread(const ReplayThread&) = delete;
ReplayThread(ReplayThread&&) = delete;
ReplayThread& operator=(const ReplayThread&) = delete;
ReplayThread& operator=(ReplayThread&&) = delete;
const ReplayConfig& state() const {
return config;
};
const ReplayConfig& state() const {
return config;
};
enum replaythread_return {
READ_ERROR = 0,
END_OF_FILE,
TERMINATED
};
enum replaythread_return {
READ_ERROR = 0,
END_OF_FILE,
TERMINATED
};
private:
ReplayConfig config;
std::unique_ptr<stream::Reader> reader;
bool* ready_sig;
std::function<void(uint32_t return_code)> terminate_callback;
Thread* thread { nullptr };
private:
ReplayConfig config;
std::unique_ptr<stream::Reader> reader;
bool* ready_sig;
std::function<void(uint32_t return_code)> terminate_callback;
Thread* thread{nullptr};
static msg_t static_fn(void* arg);
static msg_t static_fn(void* arg);
uint32_t run();
uint32_t run();
};
#endif/*__REPLAY_THREAD_H__*/
#endif /*__REPLAY_THREAD_H__*/