![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/thread/ |
Upload File : |
#ifndef BOOST_THREAD_ONCE_HPP #define BOOST_THREAD_ONCE_HPP // once.hpp // // (C) Copyright 2006-7 Anthony Williams // // 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) #include <boost/thread/detail/config.hpp> #ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable: 4702) // unreachable code #endif #include <boost/thread/detail/platform.hpp> #if defined(BOOST_THREAD_PLATFORM_WIN32) #include <boost/thread/win32/once.hpp> #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) #if defined BOOST_THREAD_ONCE_FAST_EPOCH #include <boost/thread/pthread/once.hpp> #elif defined BOOST_THREAD_ONCE_ATOMIC #include <boost/thread/pthread/once_atomic.hpp> #else #error "Once Not Implemented" #endif #else #error "Boost threads unavailable on this platform" #endif #include <boost/config/abi_prefix.hpp> namespace boost { // template<class Callable, class ...Args> void // call_once(once_flag& flag, Callable&& func, Args&&... args); template<typename Function> inline void call_once(Function func,once_flag& flag) //inline void call_once(void (*func)(),once_flag& flag) { call_once(flag,func); } } #include <boost/config/abi_suffix.hpp> #ifdef BOOST_MSVC # pragma warning(pop) #endif #endif