On Thu, Apr 8, 2010 at 1:49 AM, Nelson, Erik - 2
<[email protected]> wrote:
>
> int main(int argc, char * argv[]) {
>    try {
>       ThreadServer thread_server("localhost", "3000");
>       boost::thread thread_(boost::bind(&ThreadServer::thread_func, 
> boost::ref(thread_server)));
>       hello_world handler;
>       http::server<hello_world> server("localhost", "3000", handler);
>       server.run();

Here, you are blocking the current thread.

>       thread_.join();

And if ever you get here, the exception will throw.

-- 
Dean Michael Berris
deanberris.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to