Ryan Bloom wrote:
I would suggest not using a thread ID. They are incedibly non-portable. Windows uses HANDLEs instead of ints.
Not exactly. Windows has both thread handles and thead IDs. Use GetCurrentThread to get a handle, and GetCurrentThreadId to get an int.
And anyway, a hash key doesn't have to be an int. Any kind of unique object will do. I doubt there's a threading library that doesn't have some sort of unique thread identifier available.
-- Brane Čibej <[EMAIL PROTECTED]> http://www.xbc.nu/brane/