struct CCL::Threading::IThread
Overview
Thread interface, created via System::CreateNativeThread(). More…
#include <ithreading.h> struct IThread: public CCL::IUnknown { // methods virtual Core::Threads::ThreadID CCL_API getThreadID () const = 0; virtual ThreadPriority CCL_API getPriority () const = 0; virtual void CCL_API setPriority (ThreadPriority priority) = 0; virtual void CCL_API setCPUAffinity (int cpu) = 0; virtual void CCL_API start () = 0; virtual void CCL_API terminate () = 0; virtual tbool CCL_API join (uint32 milliseconds) = 0; virtual ThreadErrors CCL_API getErrors () const = 0; };
Inherited Members
public: // methods virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0; virtual unsigned int CCL_API retain () = 0; virtual unsigned int CCL_API release () = 0;
Detailed Documentation
Thread interface, created via System::CreateNativeThread().
Methods
virtual Core::Threads::ThreadID CCL_API getThreadID () const = 0
Get thread identifier.
virtual ThreadPriority CCL_API getPriority () const = 0
Get current priority.
virtual void CCL_API setPriority (ThreadPriority priority) = 0
Set current priority.
virtual void CCL_API setCPUAffinity (int cpu) = 0
Set CPU affinity.
virtual void CCL_API start () = 0
Start thread.
virtual void CCL_API terminate () = 0
Terminate thread.
virtual tbool CCL_API join (uint32 milliseconds) = 0
Wait for thread to finish.
virtual ThreadErrors CCL_API getErrors () const = 0
Get thread errors.