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 an other wait strategy (atomic flag with relaxed) for race_test #13

Open
martong opened this issue May 24, 2016 · 0 comments
Open

Comments

@martong
Copy link
Owner

martong commented May 24, 2016

This idea comes from crimson-virtue.
In ExecuteInLoop.hpp instead of relying on asm("") we could use an atomic ready flag with relaxed load and store.
In RandomWait::operator() we would have a while loop until the flag is not set. The flag would be set in the main thread. Because of cache synchronisation we might not know exactly when will each thread be notified about the change, this way they will wait for some random time.

@martong martong changed the title Add an other wait strategy (atomic relaxed) for race_test Add an other wait strategy (atomic flag with relaxed) for race_test May 24, 2016
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