You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
4.3 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: winstl/synch/synchfwd.hpp
  3. *
  4. * Purpose: Forward declarations for the WinSTL components in the
  5. * Synchronisation library.
  6. *
  7. * Created: 9th June 2006
  8. * Updated: 10th August 2009
  9. *
  10. * Home: http://stlsoft.org/
  11. *
  12. * Copyright (c) 2003-2009, Matthew Wilson and Synesis Software
  13. * All rights reserved.
  14. *
  15. * Redistribution and use in source and binary forms, with or without
  16. * modification, are permitted provided that the following conditions are met:
  17. *
  18. * - Redistributions of source code must retain the above copyright notice, this
  19. * list of conditions and the following disclaimer.
  20. * - Redistributions in binary form must reproduce the above copyright notice,
  21. * this list of conditions and the following disclaimer in the documentation
  22. * and/or other materials provided with the distribution.
  23. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
  24. * any contributors may be used to endorse or promote products derived from
  25. * this software without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  28. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  31. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  32. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  33. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  34. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  35. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  36. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37. * POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * ////////////////////////////////////////////////////////////////////// */
  40. /** \file winstl/synch/synchfwd.hpp
  41. *
  42. * \brief [C++ only] Definition of the winstl::event class
  43. * (\ref group__library__synch "Synchronisation" Library).
  44. */
  45. #ifndef WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD
  46. #define WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD
  47. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  48. # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_MAJOR 1
  49. # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_MINOR 0
  50. # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_REVISION 2
  51. # define WINSTL_VER_WINSTL_SYNCH_HPP_SYNCHFWD_EDIT 5
  52. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  53. /* /////////////////////////////////////////////////////////////////////////
  54. * Includes
  55. */
  56. #ifndef WINSTL_INCL_WINSTL_H_WINSTL
  57. # include <winstl/winstl.h>
  58. #endif /* !WINSTL_INCL_WINSTL_H_WINSTL */
  59. #ifndef STLSOFT_INCL_STLSOFT_SYNCH_HPP_CONCEPTS
  60. # include <stlsoft/synch/concepts.hpp>
  61. #endif /* !STLSOFT_INCL_STLSOFT_SYNCH_HPP_CONCEPTS */
  62. #ifndef WINSTL_INCL_WINSTL_SYNCH_ERROR_HPP_EXCEPTIONS
  63. # include <winstl/synch/error/exceptions.hpp>
  64. #endif /* !WINSTL_INCL_WINSTL_SYNCH_ERROR_HPP_EXCEPTIONS */
  65. /* /////////////////////////////////////////////////////////////////////////
  66. * Namespace
  67. */
  68. #ifndef _WINSTL_NO_NAMESPACE
  69. # if defined(_STLSOFT_NO_NAMESPACE) || \
  70. defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
  71. /* There is no stlsoft namespace, so must define ::winstl */
  72. namespace winstl
  73. {
  74. # else
  75. /* Define stlsoft::winstl_project */
  76. namespace stlsoft
  77. {
  78. namespace winstl_project
  79. {
  80. # endif /* _STLSOFT_NO_NAMESPACE */
  81. #endif /* !_WINSTL_NO_NAMESPACE */
  82. /* /////////////////////////////////////////////////////////////////////////
  83. * Functions
  84. */
  85. /* /////////////////////////////////////////////////////////////////////////
  86. * Classes
  87. */
  88. class event;
  89. class process_mutex;
  90. class semaphore;
  91. //class spin_mutex;
  92. class thread_mutex;
  93. class tss_index;
  94. /* ////////////////////////////////////////////////////////////////////// */
  95. #ifndef _WINSTL_NO_NAMESPACE
  96. # if defined(_STLSOFT_NO_NAMESPACE) || \
  97. defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
  98. } // namespace winstl
  99. # else
  100. } // namespace winstl_project
  101. } // namespace stlsoft
  102. # endif /* _STLSOFT_NO_NAMESPACE */
  103. #endif /* !_WINSTL_NO_NAMESPACE */
  104. /* ////////////////////////////////////////////////////////////////////// */
  105. #endif /* !WINSTL_INCL_WINSTL_SYNCH_HPP_SYNCHFWD */
  106. /* ///////////////////////////// end of file //////////////////////////// */