openMSX
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
8namespace openmsx {
9
15class PreCacheFile final
16{
17public:
18 explicit PreCacheFile(std::string name);
20
21private:
22 void run() const;
23
24private:
25 const std::string name;
26 std::thread thread;
27 std::atomic<bool> exitLoop = false;
28};
29
30} // namespace openmsx
31
32#endif
Read the complete file once and discard result.
This file implemented 3 utility functions:
Definition Autofire.cc:11