12 #define P6THREAD_H__ 1
82 #define IF_p6ICreateErrorInfo {0xD89A40FE,0x5144,0x4A4F,{0xBF,0xE6,0x93,0x95,0x4B,0xE2,0x93,0x3B}}
222 #define IF_p6ICurThread {0x54F02315,0x49CB,0x4053,{0xA3,0xEF,0x2A,0xD0,0x7D,0xFC,0xA4,0x48}}
320 #define IF_p6IThread {0xA6AF4610,0xCA9F,0x4B98,{0xA9,0x8C,0xA7,0x71,0x9A,0xF6,0xC6,0x9A}}
323 #define COMP_p6Thread {0xCC7A814C,0x36B5,0x4729,{0x8D,0x9D,0xF2,0x70,0x87,0x6A,0x90,0xEB}}
363 #define IF_p6IEnumThreadInfo {0x1E89BCB5,0xB0D7,0x4d56,{0xBE,0xAA,0x5C,0x6D,0xF3,0x40,0xAD,0x6D}}
392 #define IF_p6IThreadManager {0x2F097B8D,0x3E90,0x4579,{0xAB,0x44,0x9A,0x45,0x50,0x59,0x5F,0xFD}}
P6UINT32 P6THREADFLAGS
Defines thread startup flags.
virtual P6R::P6ERR initialize(P6R::P6THREADFLAGS fFlags, const P6R::P6WCHAR *pcszwThreadName, P6R::P6UINT32 cStack, P6R::P6THREADPRIORITY nPriority, P6R::P6THREADMAIN pfnThread, P6R::P6VOID *pArg)=0
This method initializes the component for use and must be called before calling any other method...
virtual P6R::P6ERR setPriority(P6R::P6THREADPRIORITY nPriority)=0
Sets the threads priority to the priority specified in nPriority.
Enumerator for the running thread table.
P6R::P6VOID(* P6THREADMAIN)(P6R::p6ICurThread *pCurThread, P6R::p6ILogProducer *pThreadLogger, P6R::P6VOID *pArg)
Defines the signature of a thread main entry point.
This interface is used by a thread to manage information about itself.
virtual P6R::P6ERR setPriority(P6R::P6THREADPRIORITY nPriority)=0
Set the curent threads priority to the priority specified in nPriority.
virtual P6R::P6ERR setErrorInfo(P6R::p6ICreateErrorInfo *pInfo)=0
COM Exceptions - Sets the provided p6IErrorInfo interface into the threads error list.
virtual P6R::P6ERR next(P6R::P6UINT32 cElements, P6R::P6THREADINFO *parElements, P6R::P6UINT32 *pcReturned)=0
This method is used to iterate the running thread table and returns information about each running th...
const P6THREADFLAGS P6TF_NONE
No flags specified.
This interface is used to externally manage a thread.
virtual P6R::P6ERR getLogger(P6R::p6ILogProducer **ppThreadLogger)=0
Retrieves an addref'd interface pointer for the current threads default logger.
virtual P6R::P6ERR initialize(P6R::P6ERR error, const P6R::IID *piid, const P6R::P6CHAR *pszFilename, P6R::P6UINT32 cLine, const P6R::P6WCHAR *pwszContext, const P6R::P6WCHAR *pwszDescription)=0
Initializes the exception record with information about the error condition.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
virtual P6R::P6ERR reset()=0
Resets the enumeration to the begining.
virtual P6R::P6ERR getCurrentThreadLogger(P6R::p6ILogProducer **ppLogger)=0
The base interface all [p6]COM components must derive from and implement.
This interface is used to create new threads as well as get an enumerator to get information about ea...
Log producer component interfaces.
virtual P6R::P6ERR getThreadInfo(P6R::P6THREADINFO *pInfoBuffer)=0
Retrieves information about the thread, such as thread ID, start time, name, current state and priori...
virtual P6R::P6ERR setThreadState(const P6R::P6WCHAR *pcszwState)=0
This method sets the current threads state.
p6IErrorInfo interface definition
virtual P6R::P6ERR createErrorInfo(P6R::p6ICreateErrorInfo **ppCreateInfo)=0
COM Exceptions - Creates and returns an uninitialized p6ICreateErrorInfo interface.
virtual P6R::P6ERR enumThreads(P6R::p6IEnumThreadInfo **ppEnum)=0
This method retrieves an enumerator which is used to iterate through all the threads in the RTT...
A universally unique indentifier (UUID).
virtual P6R::P6ERR sleep(P6R::P6INTERVAL tTimeout)=0
Put the current thread to sleep for the specified timeout period.
virtual P6R::P6ERR getCurrentThread(P6R::p6ICurThread **ppCurThread)=0
virtual P6R::P6ERR getThreadInfo(P6R::P6THREADINFO *pInfoBuffer)=0
Retrieves information about the current threads such as thread ID, start time, name, current state and priority.
P6UINT32 P6ERR
COM err return type see P6ERR.h.
virtual P6R::P6ERR flushErrorInfo(P6R::p6ILogProducer *pLog)=0
COM Exceptions - This method causes all outstanding exception records to be logged and then flushed f...
const P6THREADFLAGS P6TF_RESERVED1
Reserved for runtime use only.
P6COM definitions and interfaces.
virtual P6R::P6ERR getErrorInfo(P6R::p6IErrorInfo **ppInfo)=0
COM Exceptions - Retrieves the next exception record (p6IErrorInfo interface) for the current thread...
virtual P6R::P6ERR getThreadId(P6R::P6THREADID *pId)=0
Retrieves the current threads thread ID.
virtual P6R::P6ERR start()=0
Starts the thread.
virtual P6R::P6ERR wait()=0
Wait (block) until the thread terminates.
This interface is used to initialize a COM exception record with information about an error condition...
char P6CHAR
Narrow character type.