apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: freelists: a slightly different approach
Date Fri, 28 Sep 2001 17:33:54 GMT
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   <brane@xbc.nu>            http://www.xbc.nu/brane/

View raw message