OdysseyDecomp/lib/al/include/Library/Thread/AsyncFunctorThread.h
MonsterDruide1 69d81ebd91
Custom format validation (Linting) (#17)
* Add script to verify formatting
* Add newline to end of files
* Add `#pragma once` to top of headers
* Add own header to includes at top of source files
* Remove useless namespace qualifiers
* Sort visibility modifiers correctly
* Format `#include`s in three blocks
* Remove `;` after namespaces
* Add for custom style checking to `lint`-GitHub-Action
* Format: No "// 0x" offset comments
* Remove macros from padding
2024-01-07 00:33:09 +01:00

32 lines
771 B
C++

#pragma once
#include <basis/seadTypes.h>
#include <mc/seadCoreInfo.h>
#include <prim/seadSafeString.h>
#include "Library/Thread/FunctorV0M.h"
namespace sead {
class DelegateThread;
class Thread;
} // namespace sead
namespace al {
class AsyncFunctorThread {
public:
AsyncFunctorThread(const sead::SafeString& functor_name, const FunctorBase& functor,
s32 priority, s32 stack_size, sead::CoreId id);
virtual ~AsyncFunctorThread();
void threadFunction(sead::Thread* unused_1, s64 unused_2);
void start();
bool isDone() const;
private:
sead::DelegateThread* mDelegateThread = nullptr;
FunctorBase* mFunctor = nullptr;
bool mIsDone = true;
};
static_assert(sizeof(AsyncFunctorThread) == 0x20);
} // namespace al