On 31.03.2010 11:18, Sebastian Bauer wrote:
What do you mean by 1? Do you mean that gcc recognizes __thread although tls not yet supported in AmigaOS?
Yes. I recently configured a project that tried to determine whether to use pthread_setspecific or thread local storage, and since the __thread keyword was accepted as functional by the compiler, it didn't even try pthread_setspecific.
I've looked into tls support once in the course of updating the baseline to gcc 4.4.3 (development is in a separate branch of adtools and not in trunk) as I think that we need it sooner or later and it is handy for openmp support (I think). But unfortunately, I was only looking at it :(
Probably, yes. I suppose it could be implemented on top of pthreads, but I am not 100 % sure how it works. When the thread keyword worked, the library in question was missing a symbol __tls_get_addr, so I guess there is a set of functions the c library needs to support which are internally referenced by gcc. Shouldn't be too difficult.
Unfortunately I also don't have time right now. Between the X-1000 version of AmigaOS and Timberwolf there isn't much time left :-(
Regards, -- Hans-Joerg Frieden Now these points of data make a beautiful line, and we're out of beta, we're releasing on time. -- ______________________________________________________________________________ Amiga Development tools ML - //www.freelists.org/list/adtools Homepage...................: http://www.sourceforge.net/projects/adtools Listserver help............: mailto:adtools-request@xxxxxxxxxxxxx?Subject=HELP