================ idThread::Restart ================ */
| 514 | ================ |
| 515 | */ |
| 516 | void idThread::Restart( void ) { |
| 517 | int i; |
| 518 | int n; |
| 519 | |
| 520 | // reset the threadIndex |
| 521 | threadIndex = 0; |
| 522 | |
| 523 | currentThread = NULL; |
| 524 | n = threadList.Num(); |
| 525 | for( i = n - 1; i >= 0; i-- ) { |
| 526 | delete threadList[ i ]; |
| 527 | } |
| 528 | threadList.Clear(); |
| 529 | |
| 530 | memset( &trace, 0, sizeof( trace ) ); |
| 531 | trace.c.entityNum = ENTITYNUM_NONE; |
| 532 | } |
| 533 | |
| 534 | /* |
| 535 | ================ |