]> https://gitweb.dealii.org/ - dealii.git/commit
Address the important problem that previously, whenever the last Threads::Thread...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 23 Jan 2009 01:08:33 +0000 (01:08 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 23 Jan 2009 01:08:33 +0000 (01:08 +0000)
commit95144c63e876e538b05b992bba397fcf79fccf2d
treec0d9b3a3e3973f820d7e9ca2bfe23072a82a5ae5
parent38f486a03cea0084b497b40be37d87438869373a
Address the important problem that previously, whenever the last Threads::Thread<> object went out of scope, the location where a thread would deposit its return value was in deleted memory and thus potentially very bad. We now handle this by making sure that the thread itself keeps a lock on the destruction of the object in which the return_value is located, by keeping another shared_ptr to it, and only releases the lock whenever the return value has been deposited.

git-svn-id: https://svn.dealii.org/trunk@18272 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/base/include/base/std_cxx0x/shared_ptr.h
deal.II/base/include/base/thread_management.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.