Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] unbind passed function to the thread constructor after real thread exits
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-02-19 07:13:51


At Thu 19 Feb 2009 11:33:22 UTC, dadrus_at_[hidden] wrote:

>> Are you sure this is the behaviour you see?
>
> Yes, defintely!

That is bizarre. When I try the attached code it works as expected:
once the shared_ptr is reset, the instance is destroyed.

What does the attached code do on your system?

BTW, which platform/compiler are you using?

Anthony

-- 
Anthony Williams
Author of C++ Concurrency in Action | http://www.manning.com/williams
just::thread C++0x thread library   | http://www.stdthread.co.uk
Custom Software Development         | http://www.justsoftwaresolutions.co.uk
Just Software Solutions Ltd, Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK



Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk