]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/serialization/src/singleton.cpp
1 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
4 // Copyright (c) 201 5 Robert Ramey, Indiana University (garcia@osl.iu.edu)
5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
10 // it marks our code with proper attributes as being exported when
11 // we're compiling it while marking it import when just the headers
13 #define BOOST_SERIALIZATION_SOURCE
14 #include <boost/serialization/config.hpp>
15 #include <boost/serialization/singleton.hpp>
18 namespace serialization
{
20 bool & singleton_module::get_lock(){
21 static bool lock
= false;
25 BOOST_SERIALIZATION_DECL
void singleton_module::lock(){
28 BOOST_SERIALIZATION_DECL
void singleton_module::unlock(){
31 BOOST_SERIALIZATION_DECL
bool singleton_module::is_locked() {
35 } // namespace serialization