public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: parc <gappack@yahoo.de>
To: gcc-help@gcc.gnu.org
Subject: Understanding Threads
Date: Tue, 05 Jun 2012 14:28:00 -0000	[thread overview]
Message-ID: <33964421.post@talk.nabble.com> (raw)


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.

             reply	other threads:[~2012-06-05 14:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 14:28 parc [this message]
2012-06-05 17:54 ` Jonathan Wakely
2012-06-06 19:14   ` parc
2012-06-06 22:36     ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=33964421.post@talk.nabble.com \
    --to=gappack@yahoo.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).