mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 04:35:17 +00:00
28 lines
990 B
C++
28 lines
990 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
#include "sead/prim/seadSafeString.hpp"
|
|
#include "FunctorBase.h"
|
|
#include "sead/thread/seadDelegateThread.h"
|
|
#include "sead/thread/seadMessageQueue.h"
|
|
#include "sead/mc/seadCoreInfo.h"
|
|
|
|
namespace al
|
|
{
|
|
class AsyncFunctorThread {
|
|
public:
|
|
AsyncFunctorThread(sead::SafeStringBase<char> const &functorName, al::FunctorBase const &functor, int blockType, int stackSize, sead::CoreId id);
|
|
// this function is whats passed into the delegate thread as the function to call when the thread becomes unblocked
|
|
void threadFunction(sead::Thread *, s64); // unused args
|
|
|
|
bool isDone() const {return this->mIsDone;};
|
|
void start();
|
|
// private:
|
|
unsigned char padding_08[0x8];
|
|
sead::DelegateThread *mDelegateThread;
|
|
al::FunctorBase functor;
|
|
bool mIsDone;
|
|
};
|
|
} // namespace al
|
|
|
|
static_assert(sizeof(al::AsyncFunctorThread) == 0x20);
|