global HciConnName
It was my understanding that threads in the same process (assuming scripts are placed at the same location ie inbound tps stack) use the same tcl interpreter.
I ran into an error the other day where 2 separate threads using 2 separate scripts (both had the scripts placed on a route) where using a global that was named the same. This wasnt intended so the values were populated by the script A so script B failed because the value wasnt correct. My correction was to make sure the global name was unique. I guess one other caveat is that I was not actually using global i am using upvar, but my understand was that upvar #0 was the same as global.
So if its indeed true that the global space is shared by threads, then how can global HciConnName work?