From c0a7533dd4a03e999cc6f628e051b01c4b51806c Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 7 Dec 2021 00:07:40 -0500 Subject: [PATCH] task: use const for current_consumer The const version of this code has much more testing, but any effect at run time is unlikely. Signed-off-by: Zygo Blaxell --- lib/task.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/task.cc b/lib/task.cc index 00c1dcb..d97121c 100644 --- a/lib/task.cc +++ b/lib/task.cc @@ -193,7 +193,7 @@ namespace crucible { if (queue.empty()) { return; } - auto tlcc = tl_current_consumer; + const auto tlcc = tl_current_consumer; if (tlcc) { // We are executing under a TaskConsumer, splice our post-exec queue at front. // No locks needed because we are using only thread-local objects.