attempt to fix linking problems with singleton module

This commit is contained in:
Robert Ramey
2016-11-18 09:33:32 -08:00
parent 058f1fed43
commit 26366fecb5
2 changed files with 14 additions and 4 deletions

View File

@@ -87,9 +87,17 @@ class BOOST_SYMBOL_VISIBLE singleton_module :
private:
static bool & get_lock();
public:
BOOST_SERIALIZATION_DECL static void lock();
BOOST_SERIALIZATION_DECL static void unlock();
BOOST_SERIALIZATION_DECL static bool is_locked();
BOOST_SERIALIZATION_DECL static void lock(){
get_lock() = true;
}
BOOST_SERIALIZATION_DECL static void unlock(){
get_lock() = false;
}
BOOST_SERIALIZATION_DECL static bool is_locked(){
return get_lock();
}
};
#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas