interface integer function otsgetthreadnum ( ) !dec$ alias otsgetthreadnum, '_OtsGetThreadNum' end function otsgetthreadnum end interface integer result result = otsgetthreadnum ( )
This function returns a number that identifies the current thread. The main thread is zero, and slave threads are numbered densely from 1.