diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-10 14:49:47 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2008-04-11 09:07:24 -0700 |
commit | 9cfd82e87b60c0d65e9cafda026cb9a498874575 (patch) | |
tree | 6a29b41ea8bb94e51bdaab3cb2544898c3e44536 /src/cairo-xlib-private.h | |
parent | cf057c1e8603014033c079189369e91aecac2adf (diff) |
[xlib] Add locking around GC cache.
The per-screen cached of most-recently freed GCs lacks suitable locking
for it to be threadsafe.
(cherry picked from commit dc714106e156cb7901e376c0935922446ae9bcdf)
Diffstat (limited to 'src/cairo-xlib-private.h')
-rw-r--r-- | src/cairo-xlib-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index 5bfc2ec5..2d9737d9 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -79,6 +79,7 @@ typedef struct _cairo_xlib_visual_info { struct _cairo_xlib_screen_info { cairo_xlib_screen_info_t *next; cairo_reference_count_t ref_count; + cairo_mutex_t mutex; cairo_xlib_display_t *display; Screen *screen; |