]> https://gitweb.dealii.org/ - dealii.git/commit
Enable writing Threads::Thread<T> for types T that are only movable.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 29 Mar 2018 01:30:28 +0000 (19:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 29 Mar 2018 01:30:28 +0000 (19:30 -0600)
commit5e100ff128fe5baf01a88e62b28208b105561116
treefb8e8ed31eec555039219786d50d9cc461d2f49b
parentee2f723e27c60b878ee606550b7b0e27848a2fab
Enable writing Threads::Thread<T> for types T that are only movable.

Previously, it was not possible to write Threads::new_thread(&foo) or Threads::new_task(&foo)
for functions that return an object whose type is not copyable, but is movable. That's
because in a number of places in the internal machinery of the Threads::Thread and
Threads::Task classes, we didn't account for such types.

This patch fixes this.
include/deal.II/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.