Functionality: retrieve the index for a specific threanum. Returns -1 if any error is encountered.
( int threadnum )
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected