diff options
Diffstat (limited to '')
-rw-r--r-- | src/menu/drawable_control.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index 5d2aee27..ecee373d 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -26,7 +26,7 @@ #define DRAWABLE_CONTROL_HPP #include <SDL/SDL.h> -#include <boost/thread/mutex.hpp> +#include <boost/thread/shared_mutex.hpp> #include <log4cpp/Category.hh> #include "drawable.hpp" @@ -51,10 +51,10 @@ namespace usdx Background* background; - boost::mutex position_mutex; - boost::mutex size_mutex; - boost::mutex clipping_required_mutex; - boost::mutex background_mutex; + mutable boost::shared_mutex position_mutex; + mutable boost::shared_mutex size_mutex; + mutable boost::shared_mutex clipping_required_mutex; + mutable boost::shared_mutex background_mutex; protected: Container* parent; |