|
Boost : |
Subject: [boost] [thread] Bug sprint #3097 throwing destructor
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2009-11-22 14:01:55
Ticket Description:
thread::detach() and thread::~thread() could throw thread_resource_error
while locking thread_info_mutex. Currently it is on windows only.
Hi Anthony,
A simple reading of the current code let me think that this bug has been
solved.
thread::~thread()
{
detach();
}
void thread::detach()
{
release_handle();
}
void thread::release_handle()
{
lock_guard<mutex> l1(thread_info_mutex);
thread_info=0;
}
Do you agree?
Best,
Vicente
-- View this message in context: http://old.nabble.com/-thread--Bug-sprint--3097-throwing-destructor-tp26467337p26467337.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk