diff options
| author | Christoph Berg <myon@debian.org> | 2020-05-11 22:17:58 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-05-11 22:17:58 +0200 |
| commit | 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (patch) | |
| tree | c6e107c1ee4d70610e43a7912e57c720334a08c7 /boost/libs/serialization/src/singleton.cpp | |
| parent | 08299e8b2bf50ba90daf570f57def529dd29d6e7 (diff) | |
New upstream version 2.2.0~rc1+repackupstream/2.2.0_rc1+repack
Diffstat (limited to 'boost/libs/serialization/src/singleton.cpp')
| -rw-r--r-- | boost/libs/serialization/src/singleton.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/boost/libs/serialization/src/singleton.cpp b/boost/libs/serialization/src/singleton.cpp deleted file mode 100644 index b8078c1b..00000000 --- a/boost/libs/serialization/src/singleton.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// singleton.cpp -// -// Copyright (c) 201 5 Robert Ramey, Indiana University (garcia@osl.iu.edu) -// Use, modification and distribution is subject to the Boost Software -// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// - -// it marks our code with proper attributes as being exported when -// we're compiling it while marking it import when just the headers -// is being included. -#define BOOST_SERIALIZATION_SOURCE -#include <boost/serialization/config.hpp> -#include <boost/serialization/singleton.hpp> - -namespace boost { -namespace serialization { - -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 |
