Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

omp_get_thread_num (3f)


Syntax

  interface
     integer function omp_get_thread_num ( )
     end function omp_get_thread_num
  end interface
  integer result
  result = omp_get_thread_num ( )

Description

  This function binds to the closest enclosing PARALLEL directive. The master
  thread of the team is thread zero.

Return Values

  The value returned ranges from zero to omp_get_num_threads ( ) - 1.  The
  function returns zero when called from a serial region or from within a
  nested parallel region that is serialized.

See Also

  omp_get_num_threads(3f), omp_set_num_threads(3f)