openMSX
file
PreCacheFile.hh
Go to the documentation of this file.
1
#ifndef PRECACHEFILE_HH
2
#define PRECACHEFILE_HH
3
4
#include <atomic>
5
#include <string>
6
#include <thread>
7
8
namespace
openmsx
{
9
15
class
PreCacheFile
final
16
{
17
public
:
18
explicit
PreCacheFile
(std::string name);
19
~PreCacheFile
();
20
21
private
:
22
void
run();
23
24
private
:
25
const
std::string name;
26
std::thread thread;
27
std::atomic<bool> exitLoop;
28
};
29
30
}
// namespace openmsx
31
32
#endif
openmsx::PreCacheFile
Read the complete file once and discard result.
Definition:
PreCacheFile.hh:16
openmsx::PreCacheFile::PreCacheFile
PreCacheFile(std::string name)
Definition:
PreCacheFile.cc:14
openmsx::PreCacheFile::~PreCacheFile
~PreCacheFile()
Definition:
PreCacheFile.cc:20
openmsx
This file implemented 3 utility functions:
Definition:
Autofire.cc:9
Generated on Fri May 19 2023 13:13:11 for openMSX by
1.9.4