112027Sjungma@eit.uni-kl.de/***************************************************************************** 212027Sjungma@eit.uni-kl.de 312027Sjungma@eit.uni-kl.de Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412027Sjungma@eit.uni-kl.de more contributor license agreements. See the NOTICE file distributed 512027Sjungma@eit.uni-kl.de with this work for additional information regarding copyright ownership. 612027Sjungma@eit.uni-kl.de Accellera licenses this file to you under the Apache License, Version 2.0 712027Sjungma@eit.uni-kl.de (the "License"); you may not use this file except in compliance with the 812027Sjungma@eit.uni-kl.de License. You may obtain a copy of the License at 912027Sjungma@eit.uni-kl.de 1012027Sjungma@eit.uni-kl.de http://www.apache.org/licenses/LICENSE-2.0 1112027Sjungma@eit.uni-kl.de 1212027Sjungma@eit.uni-kl.de Unless required by applicable law or agreed to in writing, software 1312027Sjungma@eit.uni-kl.de distributed under the License is distributed on an "AS IS" BASIS, 1412027Sjungma@eit.uni-kl.de WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512027Sjungma@eit.uni-kl.de implied. See the License for the specific language governing 1612027Sjungma@eit.uni-kl.de permissions and limitations under the License. 1712027Sjungma@eit.uni-kl.de 1812027Sjungma@eit.uni-kl.de *****************************************************************************/ 1912027Sjungma@eit.uni-kl.de 2012027Sjungma@eit.uni-kl.de/***************************************************************************** 2112027Sjungma@eit.uni-kl.de 2212027Sjungma@eit.uni-kl.de sc_boost.h -- Thread Semantics Provided By The Boost Library 2312027Sjungma@eit.uni-kl.de 2412027Sjungma@eit.uni-kl.de Original Author: Stuart Swan, Cadence Design Systems, Inc 2512027Sjungma@eit.uni-kl.de 2612027Sjungma@eit.uni-kl.de CHANGE LOG AT THE END OF THE FILE 2712027Sjungma@eit.uni-kl.de *****************************************************************************/ 2812027Sjungma@eit.uni-kl.de 2912027Sjungma@eit.uni-kl.de 3012027Sjungma@eit.uni-kl.de#ifndef SC_BOOST_H 3112027Sjungma@eit.uni-kl.de#define SC_BOOST_H 3212027Sjungma@eit.uni-kl.de 3312027Sjungma@eit.uni-kl.de// namespace sc_dp { This is off because of bugs with gcc 2.9x 3412027Sjungma@eit.uni-kl.de 3512027Sjungma@eit.uni-kl.de// SET THE NAME OF OBJECTS THAT THE SC_BOOST LIBRARY WILL PRODUCE AND INCLUDE IT 3612027Sjungma@eit.uni-kl.de 3712027Sjungma@eit.uni-kl.de#if defined(_MSC_VER) && !defined(__ICL) && !defined(__COMO__) 3812027Sjungma@eit.uni-kl.de# pragma warning(disable: 4786) // identifier truncated in debug info 3912027Sjungma@eit.uni-kl.de# pragma warning(disable: 4710) // function not inlined 4012027Sjungma@eit.uni-kl.de# pragma warning(disable: 4711) // funct. selected for auto-inline expansion 4112027Sjungma@eit.uni-kl.de# pragma warning(disable: 4514) // unreferenced inline removed 4212027Sjungma@eit.uni-kl.de#endif 4312027Sjungma@eit.uni-kl.de 4412027Sjungma@eit.uni-kl.de#include <functional> 4512027Sjungma@eit.uni-kl.de 4612027Sjungma@eit.uni-kl.de#if defined(SC_BOOST_MSVC) && (SC_BOOST_MSVC < 1300) 4712027Sjungma@eit.uni-kl.de# pragma warning(push, 3) 4812027Sjungma@eit.uni-kl.de#endif 4912027Sjungma@eit.uni-kl.de 5012027Sjungma@eit.uni-kl.de#if defined(SC_BOOST_MSVC) && (SC_BOOST_MSVC < 1300) 5112027Sjungma@eit.uni-kl.de# pragma warning(pop) 5212027Sjungma@eit.uni-kl.de#endif 5312027Sjungma@eit.uni-kl.de 5412027Sjungma@eit.uni-kl.de// } // namespace sc_dp This is off because of bugs with gcc 2.9x 5512027Sjungma@eit.uni-kl.de 5612027Sjungma@eit.uni-kl.de// macros to help avoid direct user code dependencies on boost lib 5712027Sjungma@eit.uni-kl.de// 5812027Sjungma@eit.uni-kl.de// note the use of the sc_boost namespace for the SystemC version of 5912027Sjungma@eit.uni-kl.de// boost. to replace the version shipped with SystemC with another boost 6012027Sjungma@eit.uni-kl.de// you will need to change the namespace prefix back to boost. 6112027Sjungma@eit.uni-kl.de 6212027Sjungma@eit.uni-kl.de#define sc_bind std::bind 6312027Sjungma@eit.uni-kl.de#define sc_ref(r) std::ref(r) 6412027Sjungma@eit.uni-kl.de#define sc_cref(r) std::cref(r) 6512027Sjungma@eit.uni-kl.de 6612027Sjungma@eit.uni-kl.de// $Log: sc_boost.h,v $ 6712027Sjungma@eit.uni-kl.de// Revision 1.7 2011/08/26 20:46:09 acg 6812027Sjungma@eit.uni-kl.de// Andy Goodrich: moved the modification log to the end of the file to 6912027Sjungma@eit.uni-kl.de// eliminate source line number skew when check-ins are done. 7012027Sjungma@eit.uni-kl.de// 7112027Sjungma@eit.uni-kl.de// Revision 1.6 2011/02/18 20:27:14 acg 7212027Sjungma@eit.uni-kl.de// Andy Goodrich: Updated Copyrights. 7312027Sjungma@eit.uni-kl.de// 7412027Sjungma@eit.uni-kl.de// Revision 1.5 2011/02/13 21:47:37 acg 7512027Sjungma@eit.uni-kl.de// Andy Goodrich: update copyright notice. 7612027Sjungma@eit.uni-kl.de// 7712027Sjungma@eit.uni-kl.de// Revision 1.4 2009/07/28 01:10:53 acg 7812027Sjungma@eit.uni-kl.de// Andy Goodrich: updates for 2.3 release candidate. 7912027Sjungma@eit.uni-kl.de// 8012027Sjungma@eit.uni-kl.de// Revision 1.3 2009/02/28 00:26:58 acg 8112027Sjungma@eit.uni-kl.de// Andy Goodrich: changed boost name space to sc_boost to allow use with 8212027Sjungma@eit.uni-kl.de// full boost library applications. 8312027Sjungma@eit.uni-kl.de// 8412027Sjungma@eit.uni-kl.de// Revision 1.2 2008/05/22 17:06:24 acg 8512027Sjungma@eit.uni-kl.de// Andy Goodrich: updated copyright notice to include 2008. 8612027Sjungma@eit.uni-kl.de// 8712027Sjungma@eit.uni-kl.de// Revision 1.1.1.1 2006/12/15 20:20:05 acg 8812027Sjungma@eit.uni-kl.de// SystemC 2.3 8912027Sjungma@eit.uni-kl.de// 9012027Sjungma@eit.uni-kl.de// Revision 1.3 2006/01/13 18:44:29 acg 9112027Sjungma@eit.uni-kl.de// Added $Log to record CVS changes into the source. 9212027Sjungma@eit.uni-kl.de// 9312027Sjungma@eit.uni-kl.de 9412027Sjungma@eit.uni-kl.de#endif // SC_BOOST_H 95