|
Boost : |
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-05-28 09:45:13
Stefan Seefeld <seefeld_at_[hidden]> writes:
> Now that you have clarified the meaning of 'joinable' (thanks !), I
> think 'attached' is not a synonym for it.
>
> thread t(task);
> ...
> t.join();
> ...
> assert(t.attached() == false); // doesn't sound right, does it ?
Seems OK to me. t is now "not-a-thread", so attached() should return
false.
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk