RavEngine
Loading...
Searching...
No Matches
physx::Ext::CpuWorkerThread Class Reference
Inheritance diagram for physx::Ext::CpuWorkerThread:
[legend]
Collaboration diagram for physx::Ext::CpuWorkerThread:
[legend]

Public Member Functions

void initialize (DefaultCpuDispatcher *ownerDispatcher)
 
void execute ()
 
bool tryAcceptJobToLocalQueue (PxBaseTask &task, PxThread::Id taskSubmitionThread)
 
PxBaseTask * giveUpJob ()
 
PxThread::Id getWorkerThreadId () const
 
- Public Member Functions inherited from physx::PxThreadT< Alloc >
 PxThreadT (const Alloc &alloc=Alloc())
 
 PxThreadT (PxThreadImpl::ExecuteFn fn, void *arg, const char *name, const Alloc &alloc=Alloc())
 
virtual ~PxThreadT ()
 
void start (PxU32 stackSize=PxThreadImpl::getDefaultStackSize())
 
void kill ()
 
void signalQuit ()
 
bool waitForQuit ()
 
bool quitIsSignalled ()
 
void quit ()
 
PxU32 setAffinityMask (PxU32 mask)
 
void setPriority (PxThreadPriority::Enum prio)
 
void setName (const char *name)
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Protected Attributes

SharedQueueEntryPool mQueueEntryPool
 
DefaultCpuDispatcher * mOwner
 
PxSList mLocalJobList
 
PxThread::Id mThreadId
 

Additional Inherited Members

- Public Types inherited from physx::PxThreadT< Alloc >
typedef PxThreadImpl::Id Id
 
- Static Public Member Functions inherited from physx::PxThreadT< Alloc >
static PxThreadPriority::Enum getPriority (PxThreadImpl::Id threadId)
 
static void sleep (PxU32 ms)
 
static void yield ()
 
static void yieldProcesor ()
 
static PxU32 getDefaultStackSize ()
 
static PxThreadImpl::Id getId ()
 
static PxU32 getNbPhysicalCores ()
 
- Protected Member Functions inherited from physx::PxReflectionAllocator< T >
 PxReflectionAllocator (const PxEMPTY)
 
 PxReflectionAllocator (const char *=0)
 
 PxReflectionAllocator (const PxReflectionAllocator &)
 
PX_FORCE_INLINE void * allocate (size_t size, const char *filename, int line)
 
PX_FORCE_INLINE void deallocate (void *ptr)
 
- Protected Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Member Function Documentation

◆ execute()

void Ext::CpuWorkerThread::execute ( void  )
virtual

The virtual execute() method is the user defined function that will run in the new thread. Called in the context of the spawned thread.

Reimplemented from physx::PxThreadT< Alloc >.


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