MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / GetThread

Method GetThread

neo/d3xp/script/Script_Thread.cpp:461–475  ·  view source on GitHub ↗

================ idThread::GetThread ================ */

Source from the content-addressed store, hash-verified

459================
460*/
461idThread *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================

Callers 1

MSG_WriteThreadInfoMethod · 0.45

Calls 2

NumMethod · 0.45
GetThreadNumMethod · 0.45

Tested by

no test coverage detected