diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-21 16:11:13 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-02-21 16:11:13 +1100 |
| commit | 32a04a3554c583900d1c8452b958b71cc765eacf (patch) | |
| tree | a94673ba1ff67dc51db75948f1b3e089ae6fa33c /src/layer_context.hh | |
| parent | b7f8df7ba5a08fdf60f2966f0fdcdb06de99c575 (diff) | |
Don't wait inside spinlock
Diffstat (limited to 'src/layer_context.hh')
| -rw-r--r-- | src/layer_context.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layer_context.hh b/src/layer_context.hh index 59861a7..44857d4 100644 --- a/src/layer_context.hh +++ b/src/layer_context.hh @@ -71,7 +71,7 @@ struct LayerContext final : public Context { assert(it != std::end(this->contexts)); using context_t = dispatch_context_t<DT>; - auto ptr = std::dynamic_pointer_cast<context_t>(it->second); + const auto ptr = std::dynamic_pointer_cast<context_t>(it->second); assert(ptr); return ptr; } |
