Re: Is there such a thing as an invalid thread id?
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: Thu, 19 Jan 2006 19:22:51 -0800
"Buckaroo_Banzi" <NUKTNEIDMUFK@xxxxxxxxxxxxx> wrote in message
news:1137709461.806656.189540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> The first reply solved my real problem (thank you again). But I am
> wondering what in this response, or in the manual (which I did read
> before posting), tells me whether or not there is a specific value
> returned in "thread" that indicates an invalid thread?
The only value you can use is the ID of a thread that is known by both
parties not to be the newly-created thread. For example, you could return
the thread ID of the calling thread to indicate failure. However, remember
that you can't compare thread IDs directly (that's what 'pthread_equal' is
for.)
DS
.
- References:
- Is there such a thing as an invalid thread id?
- From: Buckaroo_Banzi
- Re: Is there such a thing as an invalid thread id?
- From: Nathanael Hoyle
- Re: Is there such a thing as an invalid thread id?
- From: Buckaroo_Banzi
- Is there such a thing as an invalid thread id?
- Prev by Date: Re: Is there such a thing as an invalid thread id?
- Next by Date: Re: working with files the linux way...
- Previous by thread: Re: Is there such a thing as an invalid thread id?
- Next by thread: Re: Is there such a thing as an invalid thread id?
- Index(es):
Relevant Pages
|