leil-io / saunafs

SaunaFS is a free-and open source, distributed POSIX file system inspired by Google File System.
https://saunafs.com
GNU General Public License v3.0
62 stars 5 forks source link

refactor(common): Replace raw queue with PCQueue #247

Closed ralcolea closed 3 days ago

ralcolea commented 6 days ago

This commit replaces previous C-based pcqueue with a modern PCQueue class to improve resource management and maintainability. This refactor transitions from C-style manual memory management to smart pointers and modern C++ synchronization primitives like std::condition_variable and std::mutex to ensure thread-safe concurrent access.