apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: [PATCH] vformatter support for formatting apr_os_thread_t in hex
Date Mon, 20 Jun 2005 11:03:50 GMT
On 6/16/05, Joe Orton <jorton@redhat.com> wrote:
> On Thu, Jun 16, 2005 at 07:25:55AM -0400, Jeff Trawick wrote:
> > This uses format %pt.  (%pT is existing, and results in tid in
> > decimal.)  The display will use lower-case a-f.
> >
> > Comments/concerns?
> 
> Seems fine.
> 
> [it would be nice if %pT actually printed the thread id with NPTL rather
> than just a pointer value, hmmm]

IOW, look into the opaque value to find something like 1, 2, 3, 4, 5, etc.?

That would be nice.  OTOH, that would likely break the ability to
correlate thread ids among logs/displays which used apr thread id
formatting and logs/displays which formatted it directly.  Hosed for
some uses either way.

Use a different format character to try to pretty-print the thread id?

Mime
View raw message