Understanding Threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to install gcc-4.7 and have problems with the posix threads,
especially with the PTHREAD_ONCE_INIT decalration in the pthread.h file.
When installing, it often ends up with this 

error: ‘PTHREAD_ONCE_INIT’ undeclared here (not in a function)  static
pthread_once_t create_key_once = PTHREAD_ONCE_INIT;

So, it would be very helpful to understand what the definition of
"PTHREAD_ONCE_INIT" is about. If it's a fixed size or address value and what
it's role when handling threads. 
Moreover there are some different versions of pthread. The one wich created
the error above, i can't find now. 
-- 
View this message in context: http://old.nabble.com/Understanding-Threads-tp33964421p33964421.html
Sent from the gcc - Help mailing list archive at Nabble.com.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux