Fw: Boost.thread - infinite thread and expired thread object

25 Mar
2011
25 Mar
'11
6:36 p.m.
--- On Fri, 3/25/11, Emil Kaffeshop
From: Emil Kaffeshop
Subject: Boost.thread - infinite thread and expired thread object To: boost-users@lists.boost.org 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
5082
Age (days ago)
5082
Last active (days ago)
0 comments
1 participants
participants (1)
-
Emil Kaffeshop