1
This example shows the behavior of initTLS.
2
It should be called in the context of the new thread.
3
(so the thread id is checked to be the same).
5
It also checks if it is called for Oneway method calls.
7
If you run it on Windows, it will also use a tiny bit of COM
8
code to get usernames. This should work fine. If you fail to
9
initialize COM properly, you get errors such as "CoInitialize
10
has not been called"...