sead
Loading...
Searching...
No Matches
sead::ThreadMgr Class Reference

#include <seadThread.h>

Inherits sead::hostio::Node.

Public Member Functions

 ThreadMgr ()
virtual ~ThreadMgr ()
void initialize (Heap *)
void destroy ()
ThreadgetCurrentThread () const
bool isMainThread () const
ThreadgetMainThread () const
ThreadList::constIterator constBegin () const
ThreadList::constIterator constEnd () const

Static Public Member Functions

static void quitAndWaitDoneMultipleThread (Thread **, s32, bool)
static void waitDoneMultipleThread (Thread *const *, s32)

Protected Member Functions

void initMainThread_ (Heap *)
void destroyMainThread_ ()

Protected Attributes

ThreadList mList
ThreadmMainThread
ThreadLocalStorage mThreadPtrTLS

Constructor & Destructor Documentation

◆ ThreadMgr()

sead::ThreadMgr::ThreadMgr ( )

◆ ~ThreadMgr()

virtual sead::ThreadMgr::~ThreadMgr ( )
virtual

Member Function Documentation

◆ initialize()

void sead::ThreadMgr::initialize ( Heap * )

◆ destroy()

void sead::ThreadMgr::destroy ( )

◆ getCurrentThread()

Thread * sead::ThreadMgr::getCurrentThread ( ) const
inline

◆ isMainThread()

bool sead::ThreadMgr::isMainThread ( ) const

◆ getMainThread()

Thread * sead::ThreadMgr::getMainThread ( ) const
inline

◆ constBegin()

ThreadList::constIterator sead::ThreadMgr::constBegin ( ) const
inline

◆ constEnd()

ThreadList::constIterator sead::ThreadMgr::constEnd ( ) const
inline

◆ quitAndWaitDoneMultipleThread()

void sead::ThreadMgr::quitAndWaitDoneMultipleThread ( Thread ** ,
s32 ,
bool  )
static

◆ waitDoneMultipleThread()

void sead::ThreadMgr::waitDoneMultipleThread ( Thread *const * ,
s32  )
static

◆ initMainThread_()

void sead::ThreadMgr::initMainThread_ ( Heap * )
protected

◆ destroyMainThread_()

void sead::ThreadMgr::destroyMainThread_ ( )
protected

Member Data Documentation

◆ mList

ThreadList sead::ThreadMgr::mList
protected

◆ mMainThread

Thread* sead::ThreadMgr::mMainThread
protected

◆ mThreadPtrTLS

ThreadLocalStorage sead::ThreadMgr::mThreadPtrTLS
protected