Server IP : 104.21.38.3 / Your IP : 172.71.81.223 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/interprocess/sync/ |
Upload File : |
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2012. 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) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTERPROCESS_NULL_MUTEX_HPP #define BOOST_INTERPROCESS_NULL_MUTEX_HPP #ifndef BOOST_CONFIG_HPP # include <boost/config.hpp> #endif # #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #include <boost/interprocess/detail/config_begin.hpp> #include <boost/interprocess/detail/workaround.hpp> //!\file //!Describes null_mutex classes namespace boost { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) namespace posix_time { class ptime; } #endif //#if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) namespace interprocess { //!Implements a mutex that simulates a mutex without doing any operation and //!simulates a successful operation. class null_mutex { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) null_mutex(const null_mutex&); null_mutex &operator= (const null_mutex&); #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED public: //!Constructor. //!Empty. null_mutex(){} //!Destructor. //!Empty. ~null_mutex(){} //!Simulates a mutex lock() operation. Empty function. void lock(){} //!Simulates a mutex try_lock() operation. //!Equivalent to "return true;" bool try_lock() { return true; } //!Simulates a mutex timed_lock() operation. //!Equivalent to "return true;" bool timed_lock(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock() operation. //!Empty function. void unlock(){} //!Simulates a mutex lock_sharable() operation. //!Empty function. void lock_sharable(){} //!Simulates a mutex try_lock_sharable() operation. //!Equivalent to "return true;" bool try_lock_sharable() { return true; } //!Simulates a mutex timed_lock_sharable() operation. //!Equivalent to "return true;" bool timed_lock_sharable(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock_sharable() operation. //!Empty function. void unlock_sharable(){} //!Simulates a mutex lock_upgradable() operation. //!Empty function. void lock_upgradable(){} //!Simulates a mutex try_lock_upgradable() operation. //!Equivalent to "return true;" bool try_lock_upgradable() { return true; } //!Simulates a mutex timed_lock_upgradable() operation. //!Equivalent to "return true;" bool timed_lock_upgradable(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock_upgradable() operation. //!Empty function. void unlock_upgradable(){} //!Simulates unlock_and_lock_upgradable(). //!Empty function. void unlock_and_lock_upgradable(){} //!Simulates unlock_and_lock_sharable(). //!Empty function. void unlock_and_lock_sharable(){} //!Simulates unlock_upgradable_and_lock_sharable(). //!Empty function. void unlock_upgradable_and_lock_sharable(){} //Promotions //!Simulates unlock_upgradable_and_lock(). //!Empty function. void unlock_upgradable_and_lock(){} //!Simulates try_unlock_upgradable_and_lock(). //!Equivalent to "return true;" bool try_unlock_upgradable_and_lock() { return true; } //!Simulates timed_unlock_upgradable_and_lock(). //!Equivalent to "return true;" bool timed_unlock_upgradable_and_lock(const boost::posix_time::ptime &) { return true; } //!Simulates try_unlock_sharable_and_lock(). //!Equivalent to "return true;" bool try_unlock_sharable_and_lock() { return true; } //!Simulates try_unlock_sharable_and_lock_upgradable(). //!Equivalent to "return true;" bool try_unlock_sharable_and_lock_upgradable() { return true; } }; } //namespace interprocess { } //namespace boost { #include <boost/interprocess/detail/config_end.hpp> #endif //BOOST_INTERPROCESS_NULL_MUTEX_HPP