Function CSPThread::GetUserParam()
Description:
This member function returns the user specified parameter (or otherwise known as context data).
 |
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 }
|
|