adjustments for clang visibility

This commit is contained in:
Robert Ramey
2015-10-25 21:02:44 -07:00
parent 494fa31e1c
commit a76a511c95
5 changed files with 24 additions and 21 deletions

View File

@@ -13,11 +13,20 @@
namespace boost {
namespace serialization {
BOOST_SERIALIZATION_DECL
bool & singleton_module::get_lock(){
static bool lock = false;
return lock;
}
BOOST_SERIALIZATION_DECL void singleton_module::lock(){
get_lock() = true;
}
BOOST_SERIALIZATION_DECL void singleton_module::unlock(){
get_lock() = false;
}
BOOST_SERIALIZATION_DECL bool singleton_module::is_locked() {
return get_lock();
}
} // namespace serialization
} // namespace boost