Skip to content

Implement Models using hazard pointers #841

Answered by ogoffart
DaMilyutin asked this question in Ideas
Discussion options

You must be logged in to vote

The model currently must only be accessed in the GUI thread. It is neither Send not Sync.
Hazard pointers is a way to do lock free programming, which is only making sense when working with highly concurrent data structures.
If we would want to make our code more thread friendly, we would start by using locks.
Then maybe later, as an optimization, we could try to do lockfree. But i don't think this is worth it at this point.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by DaMilyutin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DaMilyutin
Comment options

@Be-ing
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants