Stores the thread identifier of the current thread. 
    
 
  
 
    Syntax:
 
       
      call "CBL_THREAD_SELF" using by reference thread-id
 
    Parameters:
 
       
       
      
 
           
           
           
           
             
              |  | Using call prototype (see 
                Key) | Picture | 
 
          
 
           
             
              | thread-id | cblt-pointer | usage pointer. | 
 
          
 
        
 
 
    On Entry:
 
       
       
      
 
           
           
           
             
              | thread-id | A pointer to the thread identifier. | 
 
          
 
        
 
 
    
Comments:
The run-time system returns the thread identifier and stores it in thread-id.
You can check that the run-time system under which your program is running supports multi-threading by a call to CBL_THREAD_SELF.