inheriting from boost::thread
21 Sep
2005
21 Sep
'05
5:28 p.m.
I've been thinking about writing a class that inherits from boost::thread. However, I noticed that the destructor isn't virtual. Shouldn't it be? Thanks, aaron
21 Sep
21 Sep
6:26 p.m.
On 21/09/05, Simmons, Aaron <a-simmons1@ti.com> wrote:
I've been thinking about writing a class that inherits from boost::thread. However, I noticed that the destructor isn't virtual. Shouldn't it be?
boost::thread is designed neither as a base class nor to be used polymorphically. Why do you want to inherit from a thread? You still couldn't get at the private thread handles and there are no virtual functions to modify behavior. - Scott
6939
Age (days ago)
6939
Last active (days ago)
1 comments
2 participants
participants (2)
-
me22
-
Simmons, Aaron