mirror of
https://github.com/Zygo/bees.git
synced 2025-07-04 01:22:26 +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:
@ -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.
|
||||||
|
Reference in New Issue
Block a user