View Single Post

   
  #1 (permalink)  
Old 02-16-2008, 07:02 AM
llothar
 
Posts: n/a
Default Does OpenBSD understand the __thread variable declaration ?

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"

Reply With Quote