[Issue 23709] Cannot use synchronized on shared class with -preview=nosharedaccess

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 22 08:34:01 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23709

--- Comment #9 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to mhh from comment #8)
> If the monitor bit is synchronized does the load of c need to be atomic?

Yes, because the pointer to the class could be modified before entering the
monitor function.

--


More information about the Digitalmars-d-bugs mailing list