Boost logo

Boost Users :

Subject: [Boost-users] Fw: Boost.thread - infinite thread and expired thread object
From: Emil Kaffeshop (emildg_at_[hidden])
Date: 2011-03-25 14:36:09


--- On Fri, 3/25/11, Emil Kaffeshop <emildg_at_[hidden]> wrote:

> From: Emil Kaffeshop <emildg_at_[hidden]>
> Subject: Boost.thread - infinite thread and expired thread object
> To: boost-users_at_[hidden]
> Date: Friday, March 25, 2011, 7:16 PM
> Hello all,
>
> I am new to the group and boost.
>
> I have a question.
>
> void f (void)
> {
>   while (1)
> {
>    //do thread job   
> }
> }
>
> void start_thread ()
> {
>    boost::thread t(f);
> }
>
> void main (void)
> {
>   start_thread ();
>   pthread_exit (NULL); 
> }
>
> What are consequence for the thread "f" from disappearing
> of thread object?
> Does thread specific data available?
> Does boost::this_thread functions available?
> So is there something which f needs from "t" object?
>
> Thank you in advance!
>
> Best Regards
>
>
>      
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net