Skip to content

Commit

Permalink
Merge pull request #5173 from lioncash/memcard-dir
Browse files Browse the repository at this point in the history
GCMemcardDirectory: Move flush interval constant into the cpp file
  • Loading branch information
Parlane committed Mar 26, 2017
2 parents 76cece8 + 0a7a614 commit 741d230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp
Expand Up @@ -4,6 +4,7 @@

#include "Core/HW/GCMemcard/GCMemcardDirectory.h"

#include <chrono>
#include <cinttypes>
#include <cstring>
#include <memory>
Expand Down Expand Up @@ -188,6 +189,7 @@ void GCMemcardDirectory::FlushThread()
Common::SetCurrentThreadName(
StringFromFormat("Memcard %d flushing thread", m_card_index).c_str());

constexpr std::chrono::seconds flush_interval{1};
while (true)
{
// no-op until signalled
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.h
Expand Up @@ -4,7 +4,6 @@

#pragma once

#include <chrono>
#include <mutex>
#include <string>
#include <thread>
Expand Down Expand Up @@ -52,7 +51,6 @@ class GCMemcardDirectory : public MemoryCardBase, NonCopyable

std::vector<std::string> m_loaded_saves;
std::string m_save_directory;
const std::chrono::seconds flush_interval = std::chrono::seconds(1);
Common::Event m_flush_trigger;
std::mutex m_write_mutex;
Common::Flag m_exiting;
Expand Down

0 comments on commit 741d230

Please sign in to comment.