From: Will Bryant <will.bryant@ecosm.com>
To: pthreads-win32@sources.redhat.com
Subject: pthread_self inside thread procedure
Date: Fri, 19 Nov 2004 02:09:00 -0000 [thread overview]
Message-ID: <419D55E3.2020202@ecosm.com> (raw)
Hi all,
With the new release, I'm finding that my threads can't detach; at the
very start of the thread procedure, they do a
pthread_detach(pthread_self()).
This call is returning ESRCH, because while pthread_self() is returning
a valid pthread_t structure, the first element of it is always NULL (the
second member is consistently a fairly high number, eg. 2312903, but
that may not have any significance).
So, unless I'm missing something, it seems that pthread_self() is broken
with the new release. Can others reproduce this problem?
Best regards,
Will
--
Will Bryant
Systems Architect, eCOSM.
Phone +64 3 365 4176 | Mobile +64 21 655 443
http://www.ecosm.com/
reply other threads:[~2004-11-19 2:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=419D55E3.2020202@ecosm.com \
--to=will.bryant@ecosm.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).