support for __thread

Alfred Perlstein bright at mu.org
Sun Dec 21 12:33:12 PST 2003


* Daniel Eischen <eischen at vigrid.com> [031221 12:08] wrote:
> On Sun, 21 Dec 2003, Alfred Perlstein wrote:
> 
> > * Alfred Perlstein <bright at mu.org> [031221 02:47] wrote:
> > > How do I get __thread to work for me?
> > > 
> > > http://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html
> > > 
> > > it seems the assembler chokes on it?
> 
> We don't have support for it yet.  Why do you want it?

.) it'd be nice to have it for future work
.) linux seems to have it, so does MS

but mostly:

I'm porting webstone to use threads, and it uses that construct
for the win32 threaded portion, it'd be really nice if we supported
it so that I could make use of it instead of changing hundreds of
lines of code.

Any idea of how much effort it would take?  I have no clue as to
how to fix our toolchain, gooing the work in ld.so doesn't see
that awful, but it's not trivial either:

http://people.freebsd.org/~alfred/tls.pdf

I want a threaded webstone so that I can generate a lot more load
with wimpier client boxes on FreeBSD.

Right now doing hundreds of connections nearly kills my desktop,
but when threaded it barely hiccups.

Also, in re: thread things:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/60477
:(

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684


More information about the freebsd-hackers mailing list