From 9c34d27a8bc724722e9cae203e0c455573c3d5f1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 5 Sep 2012 18:30:34 +0200 Subject: menu: use boost::shared_mutex Use everywhere a mutable boost::shared_mutex to enable locking during const getter and the multiple reader and single writer pattern. --- src/menu/text.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/menu/text.hpp') diff --git a/src/menu/text.hpp b/src/menu/text.hpp index 064763e3..d32a2523 100644 --- a/src/menu/text.hpp +++ b/src/menu/text.hpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include "drawable_control.hpp" @@ -70,7 +70,7 @@ namespace usdx FTFont *font; const VerticalTextAlignment *valign; - boost::mutex font_mutex; + mutable boost::shared_mutex font_mutex; /** * This function is used to recalculate the offset of the drawn -- cgit v1.2.3