mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 18:58:14 +02:00
scaled-font: Remove a non-threadsafe double-freeze assert
Sadly we cannot check ahead of acquiring the lock whether we hold the lock. Just have to rely on lockdep. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
e4acba6d1d
commit
0d38518c38
1 changed files with 0 additions and 1 deletions
|
|
@ -786,7 +786,6 @@ _cairo_scaled_font_freeze_cache (cairo_scaled_font_t *scaled_font)
|
|||
{
|
||||
/* ensure we do not modify an error object */
|
||||
assert (scaled_font->status == CAIRO_STATUS_SUCCESS);
|
||||
assert (! scaled_font->cache_frozen);
|
||||
|
||||
CAIRO_MUTEX_LOCK (scaled_font->mutex);
|
||||
scaled_font->cache_frozen = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue