| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | |
| 5 | namespace sead { |
| 6 | class DelegateThread; |
| 7 | class Thread; |
| 8 | } // namespace sead |
| 9 | |
| 10 | namespace al { |
| 11 | class FileEntryBase; |
| 12 | |
| 13 | class FileLoaderThread { |
| 14 | public: |
| 15 | FileLoaderThread(s32 priority); |
| 16 | |
| 17 | void threadFunction(sead::Thread* thread, s64 fileEntryPtr); |
| 18 | void requestLoadFile(FileEntryBase* fileEntry); |
| 19 | |
| 20 | sead::DelegateThread* getThread() const { return mThread; } |
| 21 | |
| 22 | private: |
| 23 | sead::DelegateThread* mThread = nullptr; |
| 24 | }; |
| 25 | |
| 26 | } // namespace al |
| 27 |