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.