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

[FEATURE] Currently pthread_spinlock_t doesn't work on MacOS system #303

Open
hp77-creator opened this issue Jun 4, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@hp77-creator
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Trying to build and run bpftime gave above as an issue. It was recommending to use pthread_rwlock_t and pthread_mutex instead of pthread_spinlock_t. After discussion with @Officeyutong and @yunwei37 they suggested to write own spinlock implementation.

Describe the solution you'd like

Create your own spinlock implementation which works well with bpftime:
https://medium.com/@joao_vaz/spin-lock-in-modern-c-with-atomics-memory-barriers-and-exponential-back-off-522798aca817

@hp77-creator hp77-creator added the enhancement New feature or request label Jun 4, 2024
@hp77-creator
Copy link
Contributor Author

Relates to #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants