|
Boost : |
From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-08 17:14:31
In any case, an application class that provided command line parsing and
possibly registering specific application instance prototypes based on given
parameters would be nice. (I don't remember how friendly it is to link in
main () from an external library, but I think it works.)
----- Original Message -----
From: William E. Kempf
Newsgroups: gmane.comp.lib.boost.devel
Sent: Thursday, 2002:August:08 6:02 PM
Subject: Re: Re: Re: Re: Threads & Exceptions
----- 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
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk