Behdad Esfahbod (behdad at behdad.org) said: > I'm not sure I understand. What's wrong with locking a shared > per-display mutex in both _cairo_xlib_surface_finish() and XCloseDisplay > callback? For my purpose nothing - I guess my fingers are too used to pthread_cond_*. Thanks for the tip. -- Chris Wilson.