-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Data Race Detected - _isFinished #141
Comments
I suggest to catch this earlier by adding guards, for example: override final var isFinished: Bool {
get { return _isFinished }
set {
guard newValue != _isFinished else {
// Just to be extra annoying.
fatalError("Nuke Operation: already finished")
}
willChangeValue(forKey: "isFinished")
_isFinished = newValue
didChangeValue(forKey: "isFinished")
}
} Casually, we might just return from the guard, but an |
It looks to me that ThreadSanitizer is reporting a different kind of error. It seems to be unhappy with the fact that reads and writes to I'm not yet sure whether it's a genuine problem or a false positive. So far new debug tools (e.g. Memory Debugger) has caused me hours of lost time due to false positives. It would be nice to get rid of those warnings anyway to not annoy people using Nuke with them (this warning is very easy to reproduce). I'm not sure how to go about fixing it yet. |
I'm going to try to get rid of those warnings. I would appreciate some help. It would be nice to get rid of this |
So I've added a custom |
Xcode 9 (App Store), iOS 11.0.0, iPhone 8 Simulator
The text was updated successfully, but these errors were encountered: