Kevin Eder
09/18/2024, 3:07 PMLazyThreadSafetyMode.
I see in the documentation that it explicitly says "no locks are used" for NONE and "locks are used" for SYNCHRONIZED but it's not explicit about whether or not there is locking for PUBLICATION. Is it the case that PUBLICATION doesn't use locking underneath and instead just lets more than one thread attempt the initialization without blocking? It's just that the first returned value "wins" and is shared with all threads? This was my takeaway from the documentation but I just wanted to double check.andries.fc
09/19/2024, 5:37 AMKevin Eder
09/19/2024, 10:36 PM