dummy_mutex.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE header PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
  3. "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
  4. <!--
  5. Copyright Frank Mori Hess 2008-2009
  6. Distributed under the Boost Software License, Version 1.0. (See accompanying
  7. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. -->
  9. <header name="boost/signals2/dummy_mutex.hpp" last-revision="$Date: 2007-03-06 16:51:55 -0500 (Tue, 06 Mar 2007) $">
  10. <using-namespace name="boost::signals2"/>
  11. <using-namespace name="boost"/>
  12. <namespace name="boost">
  13. <namespace name="signals2">
  14. <class name="dummy_mutex">
  15. <inherit access="public">
  16. <type><classname>noncopyable</classname></type>
  17. </inherit>
  18. <purpose>Fake mutex which does nothing.</purpose>
  19. <description>
  20. <para>You may wish to use the <code>dummy_mutex</code> class for the <code>Mutex</code>
  21. template type of your signals if you are not concerned about thread safety.
  22. This may give slightly faster
  23. performance, since <code>dummy_mutex</code> performs no actual locking.
  24. </para>
  25. </description>
  26. <access name="public">
  27. <method name="lock">
  28. <type>void</type>
  29. <description>
  30. <para>No effect.
  31. </para>
  32. </description>
  33. </method>
  34. <method name="try_lock">
  35. <type>bool</type>
  36. <description>
  37. <para>No effect.
  38. </para>
  39. </description>
  40. <returns><para><code>true</code>.</para></returns>
  41. </method>
  42. <method name="unlock">
  43. <type>void</type>
  44. <description>
  45. <para>No effect.
  46. </para>
  47. </description>
  48. </method>
  49. </access>
  50. </class>
  51. </namespace>
  52. </namespace>
  53. </header>