Re: why __thread thread_id()

2013-05-23 Thread Yunkai Zhang
Oh, I read the implementation of pthread_self() in glibc just now, It's simple then I guessed, It seems an overkill optimization. I think we should drop this wrapper. On Fri, May 24, 2013 at 2:14 PM, Yunkai Zhang wrote: > > > > On Fri, May 24, 2013 at 1:41 AM, James Peach wrote: > >> Hi Yunk

Re: why __thread thread_id()

2013-05-23 Thread Yunkai Zhang
On Fri, May 24, 2013 at 1:41 AM, James Peach wrote: > Hi Yunkai, > > I'm looking at the reclaimable freelist code, and this jumped out at me: > > static inline pthread_t thread_id(void) > { > static __thread pthread_t tid; > > return tid?tid:(tid = pthread_self

why __thread thread_id()

2013-05-23 Thread James Peach
Hi Yunkai, I'm looking at the reclaimable freelist code, and this jumped out at me: static inline pthread_t thread_id(void) { static __thread pthread_t tid; return tid?tid:(tid = pthread_self()); } Why does this need to cache the thread ID in thread l

[ANNOUNCE] Apache Traffic Server mini-BarCamp in Denver July 9-10th

2013-05-23 Thread Leif Hedstrom
Hi all, it's our pleasure to announce the next US Apache Traffic Server BarCamp! It will be held in downtown Denver, gracefully hosted by Comcast. It's a two day event, going all day from July 9th to July 10th. We will work on code, share experiences, come up with clever ideas, and help anyone