3 ms·
Deadlocking was raised as the objection to using public instead of getter. But in regard to deadlocking, using public is strictly better than a getter. You ha
by mrkeen 2y ago
Deadlocking was raised as the objection to using public instead of getter. But in regard to deadlocking, using public is strictly better than a getter.
You have to take a lock in order to deadlock in the public version. In the getter version, you can take a lock without realising it and then deadlock.