mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2249] Convert pthread_mutex / custom AutoLock to standard C++11 std::mutex / std::lock_guard #1136
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gaul on GitHub (Aug 6, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2249
Now that s3fs requires C++11 we can use standard locking. The primary benefit is to better cooperate with Clang thread safety static analysis. It is possible that this is better for a future native Windows port as well. Note that this change is non-trivial due to the way that s3fs currently avoids recursive locking. It isn't obvious how to use the same flag pattern. My initial attempt at this shows some locking oddities that the dynamic ThreadSanitizer does not flag and may only coincidentally work.
@gaul commented on GitHub (Jul 5, 2024):
Fixed by #2466 and #2476.