Understanding Threads
parc
gappack@yahoo.de
Tue Jun 5 14:28:00 GMT 2012
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.
More information about the Gcc-help
mailing list