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:
Chris Wilson 2013-01-08 18:52:08 +00:00
parent e4acba6d1d
commit 0d38518c38

View file

@ -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;