Skip to content

Conversation

@shrit
Copy link
Member

@shrit shrit commented Jan 8, 2025

This will enable to compile the code if in some cases you do not have mutex support in the standard library. Assuming you have one core as well.

This will enable to compile the code if in some cases you do not have
mutex support in the standard library. Assuming you have one core as
well.

Signed-off-by: Omar Shrit <[email protected]>
Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

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

This looks great to me. I guess we don't really have any style rules for how to put #ifdefs inside the code... to me it looks a little ugly with the indentation but I have no other suggestion. So I think it is just fine 😄

shrit and others added 2 commits January 8, 2025 16:13
Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

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

Looks great. Want to add an entry to HISTORY.md indicating that we added the MLPACK_NO_STD_MUTEX definition for disabling use of std::mutex?

Signed-off-by: Omar Shrit <[email protected]>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

@shrit shrit merged commit 38db762 into mlpack:master Jan 10, 2025
19 of 20 checks passed
@shrit shrit deleted the mutex branch January 10, 2025 09:41
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.

4 participants