iaux::iaThread Class Reference

#include <iaThread.h>

Inherited by igor::iThread.

Public Member Functions

 iaThread (const iaString &type="")
 
virtual ~iaThread ()
 
iaThreadState getState () const
 
void run (iThreadCallbackDelegate threadDelegate)
 
void join ()
 
iaID32 getID () const
 
const iaStringgetType () const
 

Static Public Member Functions

static iaID32 getThisThreadID ()
 

Protected Member Functions

virtual void init ()
 
virtual void deinit ()
 

Friends

void * threadFunc (void *data)
 

Detailed Description

basic thread

Constructor & Destructor Documentation

◆ iaThread()

iaux::iaThread::iaThread ( const iaString type = "")

does nothing

◆ ~iaThread()

iaux::iaThread::~iaThread ( )
virtual

delete thread handle

Member Function Documentation

◆ deinit()

void iaux::iaThread::deinit ( )
protectedvirtual

deinit function is called last by the thread. right before join

Reimplemented in igor::iRenderContextThread, and igor::iThread.

◆ getID()

iaID32 iaux::iaThread::getID ( ) const
Returns
igor aux thread id

◆ getState()

iaThreadState iaux::iaThread::getState ( ) const
Returns
true: if thread is initialized; false: if not

◆ getThisThreadID()

iaID32 iaux::iaThread::getThisThreadID ( )
static
Returns
id of the thread this is running in

◆ getType()

const iaString & iaux::iaThread::getType ( ) const
Returns
type of thread

◆ init()

void iaux::iaThread::init ( )
protectedvirtual

init function will be called as first by the thread

Reimplemented in igor::iRenderContextThread, and igor::iThread.

◆ join()

void iaux::iaThread::join ( )

waits for the thread to finish

◆ run()

void iaux::iaThread::run ( iThreadCallbackDelegate  threadDelegate)

start thread with a specified delegate

Parameters
threadDelegatethe specified delegate

Friends And Related Function Documentation

◆ threadFunc

void * threadFunc ( void *  data)
friend

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