aa.keys, synchronized and shared
torhu
torhu at yahoo.com
Fri Nov 11 01:09:54 UTC 2022
On Thursday, 10 November 2022 at 21:55:26 UTC, torhu wrote:
> I'm trying to make a more thread-safe wrapper for AA's:
>
> ```
> synchronized final class SyncAA(K, V) ///
I chose to fix this by just using `synchronized (this)` inside
each method instead, for now. Still interested in cleaner
solutions, but I guess synchronized/shared is a bit of a rabbit
hole...
More information about the Digitalmars-d-learn
mailing list