Function CSPThread::GetUserParam()

Description:
This member function returns the user specified parameter (or otherwise known as context data).

Micronovae Prototype:
private: void* GetUserParam() const;

Arguments:
No arguments (void).

Return value:
Returns a void pointer to the user defined data.

Examples:
class CSPMyThread : public CSPThread
{
// Declare your data here.
};
CSPMyThread::Run()
{
int iParam = *( int * )GetUserParam();
// ... write your thread code here

return 0; // exit code
}
CSPThread | Other support classes | Class Categories | Online help home | Back

Copyright © 2002 - 2006 Micronovae Ltd. - www.micronovae.com