Skip to content

JSON RPC Server Thread Safety #291

Answered by jbbjarnason
majorpain1588 asked this question in Q&A
Discussion options

You must be logged in to vote

When implemented I had not multithreaded in mind and therefore it does not use any mutex locks. So in case of json rpc method you would need to finish serving one call before other can occur.
But the state of the json rpc objects are rarely changing so carefully it could be run in multithreaded context. But I am not sure if you could bind a callback function to the object which should run in different thread, which is probably what you would like?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jbbjarnason
Comment options

Answer selected by stephenberry
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