From ee2de36a8f2fa1c0ba3e64b3f7bbfa7a024de04e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 22 Jul 2024 09:52:14 -0600 Subject: [PATCH] Add to the documentation. --- include/deal.II/base/task_result.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/deal.II/base/task_result.h b/include/deal.II/base/task_result.h index a0501eb7ab..d06285bc3f 100644 --- a/include/deal.II/base/task_result.h +++ b/include/deal.II/base/task_result.h @@ -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(); -- 2.39.5