mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 11:57:09 +00:00
20 lines
343 B
C++
20 lines
343 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include <thread>
|
|
#include "../Utilities/Timer.h"
|
|
#include "../Utilities/AutoResetEvent.h"
|
|
|
|
class AutoSaveManager
|
|
{
|
|
private:
|
|
const uint32_t _autoSaveSlot = 8;
|
|
std::thread _autoSaveThread;
|
|
|
|
atomic<bool> _stopThread;
|
|
AutoResetEvent _signal;
|
|
Timer _timer;
|
|
|
|
public:
|
|
AutoSaveManager();
|
|
~AutoSaveManager();
|
|
}; |