TThread in C++ Builder

Job ID: 40095292

Budget: $25 – $75 USD

The job is to identify the thread called from within the thread, to know which thread :



In main code

TThread * ThreadList[10];

THandle_HandleThread[10];



ThreadLIst[4] = new MyThread(true);

THandle_Handle[4] = MainForm->pBackfillth[x]->Handle;



In the thread

MyThread::Execute()

int thistreadno=-1;



Find the thread no of this the thread, (4 in this case)

thisthreadno= ..........