OdysseyDecomp/lib/al/Library/Thread/AsyncFunctorThread.h
MonsterDruide1 2d093584f2 Move all header files to proper paths
Co-authored-by: Sanae <atmatm6000@outlook.com>
2023-08-08 19:19:07 +02:00

31 lines
773 B
C++

#pragma once
#include <basis/seadTypes.h>
#include <mc/seadCoreInfo.h>
#include <prim/seadSafeString.h>
#include "al/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,
int priority, int 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