Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safer locking #74

Open
ahmedk92 opened this issue Mar 7, 2022 · 0 comments
Open

Safer locking #74

ahmedk92 opened this issue Mar 7, 2022 · 0 comments

Comments

@ahmedk92
Copy link

ahmedk92 commented Mar 7, 2022

I learned about the use of unfair locks from this library. Thanks!

Anyway, today I stumbled upon this StackOverflow answer that mentioned that the direct use of unfair locks in Swift can fail at runtime. The fix is really simple; a pointer wrapper that provides a stable memory address (the assumption the C API makes). Any thoughts about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant