It's that time of the year again, Thread season!
Right so I got a Boss thread, which then creates a bunch of Worker threads.
In my boss thread I have
> FThreadList : TThreadList;
Which is created when the boss thread is created.
When the boss thread executes it creates a bunch of workers like so
Worker := TMyWorker.Create;
Worker.OnTerminate := OnWorkerThreadTerminate;
id := myList.Add(Worker);
Which is all good.
Now my problem is... when in my Boss.OnWorkerThreadTerminate how do I know which Worker Thread is terminating?
that gives me no love (fails to compile).
Sorry for the silly questions, lack of sleep!