1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-12-07 00:07:40 -05:00
parent 090fa39995
commit c0a7533dd4

View File

@ -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.