Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content

Replace usage of Mutex by the simpler AtmoicRefCell in harvesters

Johannes Vogel requested to merge uba_website_comment into main

We do not really need mutual exclusion between multiple tasks running on mutliple threads blocking to wait for each other. We rather just need thread-safe interior mutability to ensure safe access between concurrently executing futures within a single task which is exactly what AtomicRefCell provides without the additional infrastructure for blocking that Mutex has.

Merge request reports

Loading