This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Understanding Threads


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]