cosmic-files/src/mounter
Michael Aaron Murphy e35d5123f0
perf: avoid holding async mutex guards across await points
tokio recommends using a sync mutex with a notifier instead of the
async mutex where possible. Rust forbids holding a sync mutex guard
across await points so we can prevent a potential deadlock this way.

This adds a custom channel based on the tokio mpmc example for
handling gvfs events from callbacks to avoid the async mutex
requirement. Messages are held in a `VecDeque` behind a sync mutex
and the receiver will get notified via the notifier when a message
is added to the queue.

Weak references used in gio callbacks in case the sender is dropped
by the application.
2026-04-14 17:04:48 +02:00
..
gvfs.rs perf: avoid holding async mutex guards across await points 2026-04-14 17:04:48 +02:00
mod.rs fix: update network path when entering uri 2025-12-08 17:12:23 -07:00