perf: use atomics for controller progress and state

This commit is contained in:
Michael Aaron Murphy 2026-04-14 16:27:53 +02:00
parent 93dd775f3c
commit 971374f60b
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 29 additions and 10 deletions

8
Cargo.lock generated
View file

@ -538,6 +538,12 @@ version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
name = "atomic_float"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a"
[[package]]
name = "atomicwrites"
version = "0.4.2"
@ -1349,6 +1355,7 @@ name = "cosmic-files"
version = "1.0.9"
dependencies = [
"anyhow",
"atomic_float",
"bzip2",
"compio",
"cosmic-client-toolkit",
@ -1378,6 +1385,7 @@ dependencies = [
"notify-debouncer-full",
"notify-rust",
"num_cpus",
"num_enum",
"open",
"ordermap",
"paste",