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

thread safety warnings #57

Open
klaernie opened this issue Sep 29, 2023 · 0 comments
Open

thread safety warnings #57

klaernie opened this issue Sep 29, 2023 · 0 comments

Comments

@klaernie
Copy link

I recently fell into the problem, that JSON prefers JSON::XS, which is not thread safe. However using JSON::PP works perfectly fine.

Would it be a good idea for JSON to either:

  • omit JSON::XS from the candidate list when loaded after threads
  • warn that JSON::XS can cause issues in a threaded environment

I'd hope that this could prevent another person not reading the entire documentation of JSON::XS from getting into weird crashes and spending a few days hunting down what caused it, until finally figuring it out.

Best regards,
Andre

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

No branches or pull requests

1 participant