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()
const
;
23
24
private
:
25
const
std::string name;
26
std::thread thread;
27
std::atomic<bool> exitLoop =
false
;
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()
Definition
PreCacheFile.cc:23
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Thu Dec 19 2024 23:13:46 for openMSX by
1.9.8