]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add to the documentation. 17353/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 22 Jul 2024 15:52:14 +0000 (09:52 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 22 Jul 2024 15:52:14 +0000 (09:52 -0600)
include/deal.II/base/task_result.h

index a0501eb7ab5f75c95c3f09fa975054e8230f4799..d06285bc3f43cd6f3cea4d141378d9584d59b065 100644 (file)
@@ -311,6 +311,12 @@ namespace Threads
      * assignment operator, this function considers it an
      * error (and throws an exception) if there is still a
      * currently running task associated with the object.
+     * Because you cannot know when a task associated with an
+     * object finishes, the practical realization of there not being
+     * a currently still running task is that you can only call this
+     * function on an object that has an associated task *after* you
+     * have either called join() or asked for the return value by
+     * having called value() (which internally calls join()).
      */
     void
     clear();

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.