Can boost::threads be started in detached state ?
13 May
2005
13 May
'05
3:50 p.m.
Hi, I am using boost:thread. There does not seem to be any constructor which specifies whether the thread can be started in detached state. Will I have to use the native OS threading calls to do this? Thanks, Diwakar
16 May
16 May
2:29 p.m.
Shetty, Diwakar wrote:
Hi,
I am using boost:thread.
There does not seem to be any constructor which specifies whether the thread can be started in detached state.
This is correct.
Will I have to use the native OS threading calls to do this?
No. When a joinable boost::thread is destroyed without being used to join, the thread is detached instead. So normally you don't need to do anything special. Ben.
7136
Age (days ago)
7139
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ben Hutchings
-
Shetty, Diwakar