imgtools/imglib/boostlibrary/boost/thread/once.hpp
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 #ifndef BOOST_THREAD_ONCE_HPP
       
     2 #define BOOST_THREAD_ONCE_HPP
       
     3 
       
     4 //  once.hpp
       
     5 //
       
     6 //  (C) Copyright 2006-7 Anthony Williams 
       
     7 //
       
     8 //  Distributed under the Boost Software License, Version 1.0. (See
       
     9 //  accompanying file LICENSE_1_0.txt or copy at
       
    10 //  http://www.boost.org/LICENSE_1_0.txt)
       
    11 
       
    12 #include <boost/thread/detail/platform.hpp>
       
    13 #if defined(BOOST_THREAD_PLATFORM_WIN32)
       
    14 #include <boost/thread/win32/once.hpp>
       
    15 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD)
       
    16 #include <boost/thread/pthread/once.hpp>
       
    17 #else
       
    18 #error "Boost threads unavailable on this platform"
       
    19 #endif
       
    20 
       
    21 #include <boost/config/abi_prefix.hpp>
       
    22 
       
    23 namespace boost
       
    24 {
       
    25     inline void call_once(void (*func)(),once_flag& flag)
       
    26     {
       
    27         call_once(flag,func);
       
    28     }
       
    29 }
       
    30 
       
    31 #include <boost/config/abi_suffix.hpp>
       
    32 
       
    33 #endif