This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Understanding Threads
- From: parc <gappack at yahoo dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 5 Jun 2012 07:28:45 -0700 (PDT)
- Subject: 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.