[ft] See if I can make tsan happy

This commit is contained in:
Behdad Esfahbod 2025-03-09 03:19:22 -06:00
parent a83faa061c
commit 6ae7ef0659

View file

@ -213,9 +213,11 @@ _hb_ft_hb_font_check_changed (hb_font_t *font,
{
if (font->serial != ft_font->cached_serial)
{
ft_font->lock.lock ();
_hb_ft_hb_font_changed (font, ft_font->ft_face);
ft_font->advance_cache.clear ();
ft_font->cached_serial = font->serial;
ft_font->lock.unlock ();
return true;
}
return false;