Managing multiple threads with `local variables`

BlitzMax Forums/BlitzMax Programming/Managing multiple threads with `local variables`

Okay but how does each thread get associated with an instance of TThread?

Whether I use a type or a global array isn't so important, but I don't see how to get a specific thread to access a specific instance/index that other threads aren't accessing. Do you pass the TThread as an object into CreateThread? And if so, how do the thread functions get global access to that?