Re: Does NetBSD understand the __thread variable declaration ?
From: Joel Reicher (joel_at_panacea.null.org)
Date: 11/19/05
- Next message: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Previous message: llothar: "Does NetBSD understand the __thread variable declaration ?"
- In reply to: llothar: "Does NetBSD understand the __thread variable declaration ?"
- Next in thread: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Reply: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Nov 2005 04:52:56 GMT
"llothar" <llothar@web.de> writes:
> I write a portable multi threading platform program.
> Solaris and Linux (with glibc 2.3) both know the
>
> __threading int myvar;
>
> declaration to declare a thread local variable. Is this also
> implemented in the BSD Versions (Open,Free,Net) ? I don't want to use
> the uncomfortable "pthread_set/get_specific"
You mean __thread, I think, and not "__threading"?
AFAIUI, __thread is a gccism; an extension to the ISO C standard. If
your program is supposed to be portable, why would you want to use it?
I could be mistaken though.
Anyway, I don't believe NetBSD supports it.
Cheers,
- Joel
- Next message: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Previous message: llothar: "Does NetBSD understand the __thread variable declaration ?"
- In reply to: llothar: "Does NetBSD understand the __thread variable declaration ?"
- Next in thread: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Reply: llothar: "Re: Does NetBSD understand the __thread variable declaration ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|