HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_NullThread Class Reference

#include <UT_Thread.h>

+ Inheritance diagram for UT_NullThread:

Public Member Functions

 UT_NullThread ()
 
virtual ~UT_NullThread ()
 
virtual bool startThread (UTthreadFunc func, void *data, int stacksize)
 
virtual void killThread ()
 
virtual int waitThread (int block)
 
virtual void waitForState (State)
 
virtual int niceThread (int priority)
 
virtual int suspendThread ()
 
virtual int restartThread ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 NOTE: This level doesn't own any data apart from itself. More...
 
- Public Member Functions inherited from UT_Thread
virtual ~UT_Thread ()
 
bool startThread (UTthreadFunc func, void *data)
 
virtual void threadStarted ()
 
virtual void threadEnded ()
 
virtual int isResourceHog () const
 
virtual State getState ()
 
virtual SpinMode getSpinMode ()
 
virtual void setSpinMode (SpinMode spin_mode)
 
int isActive ()
 

Protected Member Functions

virtual void setState (State state)
 
- Protected Member Functions inherited from UT_Thread
virtual int isValid ()
 
void killIdle ()
 
 UT_Thread (SpinMode spin_mode)
 

Additional Inherited Members

- Public Types inherited from UT_Thread
enum  State { ThreadIdle, ThreadRunning }
 
enum  SpinMode { ThreadSingleRun, ThreadLowUsage }
 
using TerminateFunc ) = void(*)(
 
- Static Public Member Functions inherited from UT_Thread
static UT_ThreadallocThread (SpinMode spin_mode)
 
static int getNumProcessors ()
 
static int activeThreadCount ()
 This is only valid in debug builds. More...
 
static void resetNumProcessors ()
 
static ut_thread_id_t getMyThreadId ()
 
static ut_thread_id_t getMainThreadId ()
 
static int getMainSequentialThreadId ()
 
static int isMainThread ()
 
static bool isUTThreadCurrent ()
 
static bool isThreadingEnabled ()
 
static bool setThreadingEnabled (bool will_be_enabled)
 
static void pause (uint cycles)
 
static void yield (bool higher_only=false)
 
static int getMySequentialThreadIndex ()
 
static void configureMaxThreads (int maxthreads=-1, int stacksize=-1)
 
static bool isMaxThreadsConfigured ()
 Returns true if configureMaxThreads() has been called at least once. More...
 
static TerminateFunc getTaskSchedulerExitCallback ()
 
static void interval (int count, int thisSection, int numSections, int &start, int &len)
 
- Static Protected Member Functions inherited from UT_Thread
static voidthreadWrapper (void *data)
 
- Protected Attributes inherited from UT_Thread
volatile State myState
 
SpinMode mySpinMode
 
UTthreadFunc myCallback
 
voidmyCBData
 
const UT_TaskScopemyTaskScope
 

Detailed Description

Definition at line 283 of file UT_Thread.h.

Constructor & Destructor Documentation

UT_NullThread::UT_NullThread ( )
virtual UT_NullThread::~UT_NullThread ( )
virtual

Member Function Documentation

virtual int64 UT_NullThread::getMemoryUsage ( bool  inclusive) const
inlinevirtual

NOTE: This level doesn't own any data apart from itself.

Implements UT_Thread.

Definition at line 299 of file UT_Thread.h.

virtual void UT_NullThread::killThread ( )
virtual

Implements UT_Thread.

virtual int UT_NullThread::niceThread ( int  priority)
virtual

Implements UT_Thread.

virtual int UT_NullThread::restartThread ( )
virtual

Implements UT_Thread.

virtual void UT_NullThread::setState ( State  state)
protectedvirtual

Implements UT_Thread.

virtual bool UT_NullThread::startThread ( UTthreadFunc  func,
void data,
int  stacksize 
)
virtual

Implements UT_Thread.

virtual int UT_NullThread::suspendThread ( )
virtual

Implements UT_Thread.

virtual void UT_NullThread::waitForState ( State  )
virtual

Implements UT_Thread.

virtual int UT_NullThread::waitThread ( int  block)
virtual

Implements UT_Thread.


The documentation for this class was generated from the following file: