GCMemcardDirectory: Move flush interval constant into the cpp file
This isn't necessary to be within the header.
This commit is contained in:
parent
76cece8157
commit
0a7a6142eb
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "Core/HW/GCMemcard/GCMemcardDirectory.h"
|
#include "Core/HW/GCMemcard/GCMemcardDirectory.h"
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -188,6 +189,7 @@ void GCMemcardDirectory::FlushThread()
|
||||||
Common::SetCurrentThreadName(
|
Common::SetCurrentThreadName(
|
||||||
StringFromFormat("Memcard %d flushing thread", m_card_index).c_str());
|
StringFromFormat("Memcard %d flushing thread", m_card_index).c_str());
|
||||||
|
|
||||||
|
constexpr std::chrono::seconds flush_interval{1};
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
// no-op until signalled
|
// no-op until signalled
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <chrono>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
@ -52,7 +51,6 @@ private:
|
||||||
|
|
||||||
std::vector<std::string> m_loaded_saves;
|
std::vector<std::string> m_loaded_saves;
|
||||||
std::string m_save_directory;
|
std::string m_save_directory;
|
||||||
const std::chrono::seconds flush_interval = std::chrono::seconds(1);
|
|
||||||
Common::Event m_flush_trigger;
|
Common::Event m_flush_trigger;
|
||||||
std::mutex m_write_mutex;
|
std::mutex m_write_mutex;
|
||||||
Common::Flag m_exiting;
|
Common::Flag m_exiting;
|
||||||
|
|
Loading…
Reference in New Issue