This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Waitin Thread to finish
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: [ECOS] Waitin Thread to finish
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Thu, 03 Aug 2000 19:32:29 +0100
- CC: "Ecos-List \(E-mail\)" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <21DDE8E5343ED411840A00A0CC33402010481A@EXCHANGE5_5>
Fabrice Gautier wrote:
>
> There is no function in the C API to wait for a thread to finish.
>
> What is the way to do so?
By signalling a condition variable when your thread exits! If eCos tracked
these things for you, it would be to the detriment of everyone since the
support would be there regardless of when it was or wasn't used; when all
eCos would do is the equivalent of what you can do for yourself with
condition variables! And you can do it far more flexibly too.
If you are looking for that type of over-featuredness like, say, from
pthread_join(), then you could wait for the EL/IX work to be merged in
soon[1].
Jifl
[1] I think this is the third time today that I've said stuff will be
merged in soon!
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault