Files
wii-ipl/libs/NW4R/include/nw4r/snd/Task.h
2026-03-15 13:32:23 +00:00

39 lines
913 B
C++

#ifndef NW4R_SND_TASK_H
#define NW4R_SND_TASK_H
#include <nw4r/snd/types.h>
#include <nw4r/ut.h>
namespace nw4r {
namespace snd {
namespace detail {
class Task : private ut::NonCopyable {
friend class TaskManager;
public:
Task() : mTaskId(0) {}
Task(u32 taskId) : mTaskId(taskId) {}
virtual ~Task() {} // 0x08
virtual void Execute() = 0; // 0x0C
virtual void Cancel() = 0; // 0x10
u32 GetTaskId() const { return mTaskId; }
public:
ut::LinkListNode mTaskLink; // 0x04
private:
u32 mTaskId; // 0x0C
};
typedef ut::LinkList<Task, offsetof(Task, mTaskLink)> TaskList;
} // namespace detail
} // namespace snd
} // namespace nw4r
#endif // NW4R_SND_TASK_H