From a96ad8ee743c32fbb2fb46a0cfd6f85f568ab188 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 26 Aug 2013 11:43:41 +0000 Subject: [PATCH] Draw: Fixed compilation issue with Set__ git-svn-id: svn://ultimatepp.org/upp/trunk@6273 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/Font.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uppsrc/Draw/Font.cpp b/uppsrc/Draw/Font.cpp index 58a73a98b..b43016b0d 100644 --- a/uppsrc/Draw/Font.cpp +++ b/uppsrc/Draw/Font.cpp @@ -25,12 +25,16 @@ void InvalidateFontList() sListValid = false; } +void Set__(volatile bool& b); + const Vector& Font::List() { static Vector list; if(!sListValid) { - Set__(sListValid); - list = GetAllFacesSys(); + INTERLOCKED { + Set__(sListValid); + list = GetAllFacesSys(); + } } return list; }