$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-22 08:12:05
From: <williamkempf_at_[hidden]>
> 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
thread.
-- Peter Dimov Multi Media Ltd.