mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-30 01:27:24 -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
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue