Re: Does OpenBSD understand the __thread variable declaration ? "llothar" <llothar@web.de> writes:
> I write a portable multi threading platform program.
Keeping this in mind...
> Solaris and Linux (with glibc 2.3) both know the
>
> __threading int myvar;
you mention non-portable extensions
> 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"
then bitch about using the portable POSIX defined functions. Either
use the standard functions or limit your code to those OS that implement
the non-portable extensions. Can't speak for FreeBSD or NetBSD, but
OpenBSD does not (and can not [I think] given the current implementation)
support something like "__threading int myvar;"
// marc |