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:
parent
090fa39995
commit
c0a7533dd4
@ -193,7 +193,7 @@ namespace crucible {
|
|||||||
if (queue.empty()) {
|
if (queue.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto tlcc = tl_current_consumer;
|
const auto tlcc = tl_current_consumer;
|
||||||
if (tlcc) {
|
if (tlcc) {
|
||||||
// We are executing under a TaskConsumer, splice our post-exec queue at front.
|
// We are executing under a TaskConsumer, splice our post-exec queue at front.
|
||||||
// No locks needed because we are using only thread-local objects.
|
// No locks needed because we are using only thread-local objects.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user