On Thu, Sep 13, 2001 at 01:50:50PM -0500, William A. Rowe, Jr. wrote: > From: "dean gaudet" <[EMAIL PROTECTED]> > Sent: Thursday, September 13, 2001 11:45 AM > > > but on windows you'll need to use both getpid() and GetThreadID... i think > > it's called something similar to that. it may be "Get Thread Handle" ... > > what you really want is the thread * that create_thread returns, or you > > could use the scoreboard slot, but i don't see an obvious way to get at > > either. also -- add an extra field to unique_id_rec for the thread id. > > I suggest we add a gettid() if one does not exist, via the os.h/os.c for > MULTITHREAD platforms. Anyone who wants to hack on this, just assume it's > available, and where it isn't, someone needs to implement (I'm happy to do > so for Win32.) For *Windows*, why bother? Use a UUID. You *know* it is unique. For other platforms, the discussion could be longer, but I don't understand why you would want to tie yourself in a knot when CoCreateGuid() is just calling out to solve this. Cheers, -g -- Greg Stein, http://www.lyra.org/
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
- Re: Apache-1.3: question about mod_unique_id Greg Stein
- Re: Apache-1.3: question about mod_unique_id G�nter Knauf
- Re: Apache-1.3: question about mod_unique_id dean gaudet
- Re: Apache-1.3: question about mod_unique_id dean gaudet
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
- Re: Apache-1.3: question about mod_unique_id G�nter Knauf
- Re: Apache-1.3: question about mod_unique_id Brad Nicholes
- Re: Apache-1.3: question about mod_unique_id Greg Stein
- Re: Apache-1.3: question about mod_unique_id Greg Stein
- Re: Apache-1.3: question about mod_unique_id Greg Stein
- Re: Apache-1.3: question about mod_unique_id dean gaudet
- Re: Apache-1.3: question about mod_unique_id Brad Nicholes
- Re: Apache-1.3: question about mod_unique_id Brad Nicholes
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
- Re: Apache-1.3: question about mod_unique_id William A. Rowe, Jr.
