wine/dlls/gdiplus
Jinoh Kang 72c0c88f2a gdiplus: Replace GpImage's busy flag with SRWLOCK.
Today, the image_unlock() helper function has a data race due to
non-atomic write to GpImage's 'busy' flag which is accessible by other
threads.  Also, it lacks a release fence, which means that other threads
can observe the unlocked (busy = 0) state too early when the current
thread unlocks the image; specifically, the write to the 'busy' field of
the GpImage can be reordered before the last read/write to any other
fields of the same GpImage.

Fix this by replacing the 'busy' field of GpImage with SRWLOCK.
2022-10-24 11:17:39 +02:00
..
tests
brush.c
customlinecap.c
font.c
gdiplus.c
gdiplus.manifest
gdiplus.rc
gdiplus.spec
gdiplus11.manifest
gdiplus_private.h gdiplus: Replace GpImage's busy flag with SRWLOCK. 2022-10-24 11:17:39 +02:00
graphics.c
graphicspath.c
image.c gdiplus: Replace GpImage's busy flag with SRWLOCK. 2022-10-24 11:17:39 +02:00
imageattributes.c
Makefile.in
matrix.c
metafile.c
pathiterator.c
pen.c
region.c
stringformat.c