================ idThread::GetThread ================ */
| 437 | ================ |
| 438 | */ |
| 439 | idThread *idThread::GetThread( int num ) { |
| 440 | int i; |
| 441 | int n; |
| 442 | idThread *thread; |
| 443 | |
| 444 | n = threadList.Num(); |
| 445 | for( i = 0; i < n; i++ ) { |
| 446 | thread = threadList[ i ]; |
| 447 | if ( thread->GetThreadNum() == num ) { |
| 448 | return thread; |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | return NULL; |
| 453 | } |
| 454 | |
| 455 | /* |
| 456 | ================ |
no test coverage detected