public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Wayne Xin <wxin1@yahoo.com>
To: pthreads-win32@sources.redhat.com
Subject: pthread_join returned status
Date: Thu, 13 Jun 2002 09:16:00 -0000	[thread overview]
Message-ID: <20020613161634.36993.qmail@web13804.mail.yahoo.com> (raw)

Win2k is complaining about my memory access violation
when I try to get the status returned from
pthread_join:

int* status;
int result;

pthread_join(tid, (void**) &status);
result = *status; <-- this line seems causing problem

At the other end, I always put a status at
pthread_exit:

int status = 3;
pthread_exit(&status);

Did anybody see similar problem?

-Wayne


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

             reply	other threads:[~2002-06-13 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-13  9:16 Wayne Xin [this message]
2002-06-13 10:06 Bossom, John

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=20020613161634.36993.qmail@web13804.mail.yahoo.com \
    --to=wxin1@yahoo.com \
    --cc=pthreads-win32@sources.redhat.com \
    /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).