Skip to content

Is json thread-safe in writing? #3468

Answered by falbrechtskirchinger
pam66 asked this question in Q&A
Discussion options

You must be logged in to vote

basic_json is at most as thread-safe as the underlying types used (std::map, std::vector, ...), which, for the purpose of your question, translates to not at all. Use whatever mechanisms you'd ordinarily use to prevent data races.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pam66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants