|
Boost : |
From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-08-08 17:02:15
----- Original Message -----
From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
> Have you ever considered writing an "application" class and thus
eliminating
> main? ;)
>
> The application_base could call thread_exit () in it's destructor.
I've mentioned this (though I said it would be a thread_main() entry point
instead of a class... but the results are the same) in this very thread.
This doesn't work because users will want to use Boost.Threads in their
libraries, where they have no control over the application which implements
main(). It's a hack that may be acceptable in applications development, but
I don't find it acceptable in library development.
Bill Kempf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk