Server IP : 172.67.216.182 / Your IP : 104.23.175.137 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/thread/ |
Upload File : |
// Distributed under 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) // (C) Copyright 2012 Vicente J. Botet Escriba #ifndef BOOST_THREAD_LOCK_FACTORIES_HPP #define BOOST_THREAD_LOCK_FACTORIES_HPP #include <boost/thread/lock_types.hpp> #include <boost/thread/lock_algorithms.hpp> #if ! defined(BOOST_THREAD_NO_MAKE_UNIQUE_LOCKS) #include <tuple> // todo change to <boost/tuple.hpp> once Boost.Tuple or Boost.Fusion provides Move semantics. #endif #include <boost/config/abi_prefix.hpp> namespace boost { template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx) { return unique_lock<Lockable> (mtx); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, adopt_lock_t) { return unique_lock<Lockable> (mtx, adopt_lock); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, defer_lock_t) { return unique_lock<Lockable> (mtx, defer_lock); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, try_to_lock_t) { return unique_lock<Lockable> (mtx, try_to_lock); } #if ! defined(BOOST_THREAD_NO_MAKE_UNIQUE_LOCKS) #if ! defined BOOST_NO_CXX11_VARIADIC_TEMPLATES template <typename ...Lockable> std::tuple<unique_lock<Lockable> ...> make_unique_locks(Lockable& ...mtx) { boost::lock(mtx...); return std::tuple<unique_lock<Lockable> ...>(unique_lock<Lockable>(mtx, adopt_lock)...); } #else template <typename L1, typename L2> std::tuple<unique_lock<L1>, unique_lock<L2> > make_unique_locks(L1& m1, L2& m2) { boost::lock(m1, m2); return std::tuple<unique_lock<L1>,unique_lock<L2> >( unique_lock<L1>(m1, adopt_lock), unique_lock<L2>(m2, adopt_lock) ); } template <typename L1, typename L2, typename L3> std::tuple<unique_lock<L1>, unique_lock<L2>, unique_lock<L3> > make_unique_locks(L1& m1, L2& m2, L3& m3) { boost::lock(m1, m2, m3); return std::tuple<unique_lock<L1>,unique_lock<L2>,unique_lock<L3> >( unique_lock<L1>(m1, adopt_lock), unique_lock<L2>(m2, adopt_lock), unique_lock<L3>(m3, adopt_lock) ); } #endif #endif } #include <boost/config/abi_suffix.hpp> #endif