From a64603568bb013c0ac05dfb2f10d8b81eb7d0469 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 19 Nov 2024 15:29:41 -0500 Subject: [PATCH] task: fix try_lock argument description try_lock allows specification of a different Task to be run instead of the current Task when the lock is busy. Signed-off-by: Zygo Blaxell --- include/crucible/task.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crucible/task.h b/include/crucible/task.h index 8c9b321..64add93 100644 --- a/include/crucible/task.h +++ b/include/crucible/task.h @@ -163,9 +163,9 @@ namespace crucible { /// (it is the ExclusionLock that owns the lock, so it can /// be passed to other Tasks or threads, but this is not /// recommended practice). - /// If not successful, current Task is appended to the + /// If not successful, the argument Task is appended to the /// task that currently holds the lock. Current task is - /// expected to release any other ExclusionLock + /// expected to immediately release any other ExclusionLock /// objects it holds, and exit its Task function. ExclusionLock try_lock(const Task &task);