================ idThread::Restart ================ */
| 536 | ================ |
| 537 | */ |
| 538 | void idThread::Restart( void ) { |
| 539 | int i; |
| 540 | int n; |
| 541 | |
| 542 | // reset the threadIndex |
| 543 | threadIndex = 0; |
| 544 | |
| 545 | currentThread = NULL; |
| 546 | n = threadList.Num(); |
| 547 | for( i = n - 1; i >= 0; i-- ) { |
| 548 | delete threadList[ i ]; |
| 549 | } |
| 550 | threadList.Clear(); |
| 551 | |
| 552 | memset( &trace, 0, sizeof( trace ) ); |
| 553 | trace.c.entityNum = ENTITYNUM_NONE; |
| 554 | } |
| 555 | |
| 556 | /* |
| 557 | ================ |