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

fix: provide non-static recursive mutex initializer #1113

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

supervacuus
Copy link
Collaborator

Potentially fixes #1090 by providing another mutex initializer that manually constructs a recursive mutex instead of relying on a static initialization formula (which either the pthread library or we provide).

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.57%. Comparing base (65c109d) to head (0edcbab).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1113      +/-   ##
==========================================
- Coverage   82.63%   82.57%   -0.07%     
==========================================
  Files          53       53              
  Lines        7896     7896              
  Branches     1234     1234              
==========================================
- Hits         6525     6520       -5     
- Misses       1261     1265       +4     
- Partials      110      111       +1     

…nvert the #ifdef and also ensure SENTRY__MUTEX_INIT isn't defined for FreeBSD
@supervacuus
Copy link
Collaborator Author

Hi @rubiefawn, can you try this branch and check whether it fixes the mutex initialization issue you see on FreeBSD?

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

Successfully merging this pull request may close these issues.

FreeBSD recursive mutex initializer
1 participant