23 Sep
2022
23 Sep
'22
8:51 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/winemac.drv/display.c:
static int get_default_bpp(void) { + static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
Actually, I doubt we need to protect 'cached' with a mutex. The worst case is that get_default_bpp() may try to get the default bpp multiple times. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/844#note_9114