Return the hzProcess instance applicable to the current thread Arguments: None Pointer to the process information of the current thread

Return TypeFunction nameArguments
hzProcess*GetThreadInfo(void)

Declared in file: hzProcess.h
Defined in file : hzProcess.cpp

Function Logic:

0:START 1:tid 2:unknown 3:phz 4:unknown 5:Return phz 6:Return 0

Function body:

hzProcess* GetThreadInfo (void)
{
   //  Category: Process
   //  
   //  Return the hzProcess instance applicable to the current thread
   //  
   //  Arguments: None
   //  Returns: Pointer to the process information of the current thread
   hzProcess*  phz ;   //  Thread
   pthread_t   tid ;   //  Current thread id
   uint32_t    n ;     //  Thread iterator
   tid = pthread_self() ;
   for (n = 0; n < s_num_threads ; n++)
   {
       phz = s_actThreadReg[n] ;
       if (tid == phz->GetTID())
           return phz ;
   }
   return 0;
}