From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-22 08:12:05
> When run this program never ends, illustrating your point about
> _endthreadex et. al. However, comment out the _endthreadex line and
> the program terminates immediately even though the documentation you
> quote above indicates that returning from a thread's entry routine
> automatically calls _endthreadex. In this regard the main thread is
> unique and the documentation simply doesn't cover the semantics.
IOW returning from a thread entry routine calls _endthread(ex) but returning
from main() terminates the entire process. So you could say that it's
'main()' that is unique (it is not a thread entry routine) and not the main
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk