================ idThread::GetThread ================ */
| 459 | ================ |
| 460 | */ |
| 461 | idThread *idThread::GetThread( int num ) { |
| 462 | int i; |
| 463 | int n; |
| 464 | idThread *thread; |
| 465 | |
| 466 | n = threadList.Num(); |
| 467 | for( i = 0; i < n; i++ ) { |
| 468 | thread = threadList[ i ]; |
| 469 | if ( thread->GetThreadNum() == num ) { |
| 470 | return thread; |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | return NULL; |
| 475 | } |
| 476 | |
| 477 | /* |
| 478 | ================ |
no test coverage detected