1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-30 06:19:19 +02:00

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 <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2024-11-19 15:29:41 -05:00
Ursprung 33cde5de97
Commit a64603568b
+2 -2
Datei anzeigen
@@ -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);