Closed emac closed 7 years ago
Thanks for the fix! Just curious, did you actually run into issues with this in a real situation, or did you discover it by a purely theoretical glance at the code? :)
Not yet. I found this issue while we were reading your code in a team technique activity. :)
Just like the double-check pattern when implementing Singleton, see https://en.wikipedia.org/wiki/Double-checked_locking