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

Use _Thread_local to solve threads.h build issue #1053

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

enjoy-binbin
Copy link
Member

@enjoy-binbin enjoy-binbin commented Sep 19, 2024

Apparently this will fail to compile in some masOS version.
And internet claims _Thread_local is portable.

Fixes #1051.

Apparently this will fail to compile in some masOS version.

Fixes valkey-io#1051.

Signed-off-by: Binbin <[email protected]>
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.63%. Comparing base (ba71c7e) to head (2045db3).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1053      +/-   ##
============================================
+ Coverage     70.62%   70.63%   +0.01%     
============================================
  Files           114      114              
  Lines         61672    61672              
============================================
+ Hits          43555    43565      +10     
+ Misses        18117    18107      -10     
Files with missing lines Coverage Δ
src/zmalloc.c 84.58% <ø> (ø)

... and 11 files with indirect coverage changes

Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internet claims _Thread_local is portable, so I'm okay with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To be backported
2 participants