-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Wip Pr for thread safety #276
Conversation
I suggest the following implementation:
|
d159043
to
7d9207b
Compare
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
Signed-off-by: ROHITH RAJU <[email protected]>
This is for the coverage right?.. Ill do it |
This is important part of contract - other code will rely on fact that AssertionHandler is called in leave(), not in fail(). So it's important to fix this contract in test. |
Yes, this makes sense |
The current code is still broken and looks like you ignored explanations (in chat) and suggestions (here in PR) or didn't read them carefully... You're writing c.failure outside of the lock. You're then reading several chain fields into local vars outside of the lock too. This is a data race. Note: I'm talking about chain's lock here, not about parent's lock. Also, as I mentioned, it's better to get rid of reportSuccess and reportFailure. Also, as I also mentioned, PR currently contains some unrelated renames, it's make reviewing a bit harder, please rollback that. Yeah, also this is not a correct way to check if flag is set: |
ok will take a good look into it |
#233