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

Add lock_definitions.h #22283

Closed
wants to merge 1 commit into from

Conversation

khwilliamson
Copy link
Contributor

This file is intended to insulate C code from thread issues, when used as directed.

MANIFEST Outdated Show resolved Hide resolved
This file is intended to insulate C code from thread issues, when used
as directed.
if $entry->{locks} || $entry->{categories};
print $l <<~EOT;
#${dindent}define ${USE}_LOCK \\
#${dindent} error_${use}_not_suitable_for_multi-threaded_operation
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this generate:

#  error_foo_not suitable...

rather than

#  error foo_not suitable...

?
The first may produce an error, but it might not include the text of the symbol.

The second will produce the requested message, though it might be better to quote it, which will prevent macro replacement, allowing you to avoid the need for all_the_underscores.

@jkeenan jkeenan added Closable? We might be able to close this ticket, but we need to check with the reporter and removed Closable? We might be able to close this ticket, but we need to check with the reporter labels Dec 14, 2024
@jkeenan jkeenan closed this Dec 19, 2024
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.

3 participants