00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: winstl/synch/synchfwd.hpp 00003 * 00004 * Purpose: Forward declarations for the WinSTL components in the 00005 * Synchronisation library. 00006 * 00007 * Created: 9th June 2006 00008 * Updated: 10th August 2009 00009 * 00010 * Home: http://stlsoft.org/ 00011 * 00012 * Copyright (c) 2003-2009, Matthew Wilson and Synesis Software 00013 * All rights reserved. 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions are met: 00017 * 00018 * - Redistributions of source code must retain the above copyright notice, this 00019 * list of conditions and the following disclaimer. 00020 * - Redistributions in binary form must reproduce the above copyright notice, 00021 * this list of conditions and the following disclaimer in the documentation 00022 * and/or other materials provided with the distribution. 00023 * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of 00024 * any contributors may be used to endorse or promote products derived from 00025 * this software without specific prior written permission. 00026 * 00027 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00028 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00029 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00030 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00031 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00032 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00033 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00034 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00035 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00036 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00037 * POSSIBILITY OF SUCH DAMAGE. 00038 * 00039 * ////////////////////////////////////////////////////////////////////// */ 00040 00041 00048 #ifndef WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD 00049 #define WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD 00050 00051 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION 00052 # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_MAJOR 1 00053 # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_MINOR 0 00054 # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_REVISION 2 00055 # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_EDIT 5 00056 #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */ 00057 00058 /* ///////////////////////////////////////////////////////////////////////// 00059 * Includes 00060 */ 00061 00062 #ifndef WINSTL_INCL_WINSTL_H_WINSTL 00063 # include <winstl/winstl.h> 00064 #endif /* !WINSTL_INCL_WINSTL_H_WINSTL */ 00065 #ifndef STLSOFT_INCL_STLSOFT_SYNCH_HPP_CONCEPTS 00066 # include <stlsoft/synch/concepts.hpp> 00067 #endif /* !STLSOFT_INCL_STLSOFT_SYNCH_HPP_CONCEPTS */ 00068 #ifndef WINSTL_INCL_WINSTL_SYNCH_ERROR_HPP_EXCEPTIONS 00069 # include <winstl/synch/error/exceptions.hpp> 00070 #endif /* !WINSTL_INCL_WINSTL_SYNCH_ERROR_HPP_EXCEPTIONS */ 00071 00072 /* ///////////////////////////////////////////////////////////////////////// 00073 * Namespace 00074 */ 00075 00076 #ifndef _WINSTL_NO_NAMESPACE 00077 # if defined(_STLSOFT_NO_NAMESPACE) || \ 00078 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION) 00079 /* There is no stlsoft namespace, so must define ::winstl */ 00080 namespace winstl 00081 { 00082 # else 00083 /* Define stlsoft::winstl_project */ 00084 00085 namespace stlsoft 00086 { 00087 00088 namespace winstl_project 00089 { 00090 00091 # endif /* _STLSOFT_NO_NAMESPACE */ 00092 #endif /* !_WINSTL_NO_NAMESPACE */ 00093 00094 /* ///////////////////////////////////////////////////////////////////////// 00095 * Functions 00096 */ 00097 00098 00099 /* ///////////////////////////////////////////////////////////////////////// 00100 * Classes 00101 */ 00102 00103 class event; 00104 class process_mutex; 00105 class semaphore; 00106 //class spin_mutex; 00107 class thread_mutex; 00108 class tss_index; 00109 00110 /* ////////////////////////////////////////////////////////////////////// */ 00111 00112 #ifndef _WINSTL_NO_NAMESPACE 00113 # if defined(_STLSOFT_NO_NAMESPACE) || \ 00114 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION) 00115 } // namespace winstl 00116 # else 00117 } // namespace winstl_project 00118 } // namespace stlsoft 00119 # endif /* _STLSOFT_NO_NAMESPACE */ 00120 #endif /* !_WINSTL_NO_NAMESPACE */ 00121 00122 /* ////////////////////////////////////////////////////////////////////// */ 00123 00124 #endif /* !WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD */ 00125 00126 /* ///////////////////////////// end of file //////////////////////////// */