classtk_1_1_preempt_guard.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version='1.0' encoding='UTF-8' standalone='no'?>
  2. <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.18.0" xml:lang="ja">
  3. <compounddef id="classtk_1_1_preempt_guard" kind="class" language="C++" prot="public">
  4. <compoundname>tk::PreemptGuard</compoundname>
  5. <includes refid="kernel_8hpp" local="no">kernel.hpp</includes>
  6. <sectiondef kind="public-func">
  7. <memberdef kind="function" id="classtk_1_1_preempt_guard_1a39e396ce51420c942e7d6549ec63f88e" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
  8. <type></type>
  9. <definition>tk::PreemptGuard::PreemptGuard</definition>
  10. <argsstring>()</argsstring>
  11. <name>PreemptGuard</name>
  12. <qualifiedname>tk::PreemptGuard::PreemptGuard</qualifiedname>
  13. <briefdescription>
  14. </briefdescription>
  15. <detaileddescription>
  16. </detaileddescription>
  17. <inbodydescription>
  18. </inbodydescription>
  19. <location file="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" line="158" column="5" bodyfile="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" bodystart="158" bodyend="158"/>
  20. </memberdef>
  21. <memberdef kind="function" id="classtk_1_1_preempt_guard_1a329ea4d806861d9455168aeb01f41f86" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
  22. <type></type>
  23. <definition>tk::PreemptGuard::~PreemptGuard</definition>
  24. <argsstring>()</argsstring>
  25. <name>~PreemptGuard</name>
  26. <qualifiedname>tk::PreemptGuard::~PreemptGuard</qualifiedname>
  27. <briefdescription>
  28. </briefdescription>
  29. <detaileddescription>
  30. </detaileddescription>
  31. <inbodydescription>
  32. </inbodydescription>
  33. <location file="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" line="159" column="5" bodyfile="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" bodystart="159" bodyend="159"/>
  34. </memberdef>
  35. <memberdef kind="function" id="classtk_1_1_preempt_guard_1a360ac2b073064abc0f21db3127e7f389" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
  36. <type></type>
  37. <definition>tk::PreemptGuard::PreemptGuard</definition>
  38. <argsstring>(const PreemptGuard &amp;)=delete</argsstring>
  39. <name>PreemptGuard</name>
  40. <qualifiedname>tk::PreemptGuard::PreemptGuard</qualifiedname>
  41. <param>
  42. <type>const PreemptGuard &amp;</type>
  43. </param>
  44. <briefdescription>
  45. </briefdescription>
  46. <detaileddescription>
  47. </detaileddescription>
  48. <inbodydescription>
  49. </inbodydescription>
  50. <location file="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" line="161" column="5"/>
  51. </memberdef>
  52. <memberdef kind="function" id="classtk_1_1_preempt_guard_1ad651c301bd81f95866e1cd380c2a2417" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
  53. <type><ref refid="classtk_1_1_preempt_guard_1a39e396ce51420c942e7d6549ec63f88e" kindref="member">PreemptGuard</ref> &amp;</type>
  54. <definition>PreemptGuard &amp; tk::PreemptGuard::operator=</definition>
  55. <argsstring>(const PreemptGuard &amp;)=delete</argsstring>
  56. <name>operator=</name>
  57. <qualifiedname>tk::PreemptGuard::operator=</qualifiedname>
  58. <param>
  59. <type>const <ref refid="classtk_1_1_preempt_guard_1a39e396ce51420c942e7d6549ec63f88e" kindref="member">PreemptGuard</ref> &amp;</type>
  60. </param>
  61. <briefdescription>
  62. </briefdescription>
  63. <detaileddescription>
  64. </detaileddescription>
  65. <inbodydescription>
  66. </inbodydescription>
  67. <location file="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" line="162" column="18"/>
  68. </memberdef>
  69. </sectiondef>
  70. <briefdescription>
  71. <para>プリエンプション禁止をスコープ単位で安全に管理する RAII クラス </para>
  72. </briefdescription>
  73. <detaileddescription>
  74. <para>生成時に自動で <computeroutput><ref refid="namespacetk_1a3254a7e2a9f5ed3abe44e8cf62a8dcfe" kindref="member">tk::preempt_disable()</ref></computeroutput> を呼び、スコープを抜けた際に自動で <computeroutput><ref refid="namespacetk_1a70e6ee5f456e67a24ce13ff0fd04e4d9" kindref="member">tk::preempt_enable()</ref></computeroutput> を呼びます。</para>
  75. <para><programlisting><codeline><highlight class="normal">{</highlight></codeline>
  76. <codeline><highlight class="normal"><sp/><sp/><sp/><sp/>tk::PreemptGuard<sp/>guard;</highlight></codeline>
  77. <codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>この区間はタスクスイッチが発生しない<sp/>(I2C/SPI通信などに最適)</highlight><highlight class="normal"></highlight></codeline>
  78. <codeline><highlight class="normal"><sp/><sp/><sp/><sp/>i2c_write_blocking(...);</highlight></codeline>
  79. <codeline><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>自動でタスクスイッチが再開</highlight></codeline>
  80. </programlisting> </para>
  81. </detaileddescription>
  82. <location file="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" line="156" column="1" bodyfile="C:/Users/yoneda/Documents/Pico_Projects/tinykernel/tinykernel/include/tinykernel/kernel.hpp" bodystart="156" bodyend="163"/>
  83. <listofallmembers>
  84. <member refid="classtk_1_1_preempt_guard_1ad651c301bd81f95866e1cd380c2a2417" prot="public" virt="non-virtual"><scope>tk::PreemptGuard</scope><name>operator=</name></member>
  85. <member refid="classtk_1_1_preempt_guard_1a39e396ce51420c942e7d6549ec63f88e" prot="public" virt="non-virtual"><scope>tk::PreemptGuard</scope><name>PreemptGuard</name></member>
  86. <member refid="classtk_1_1_preempt_guard_1a360ac2b073064abc0f21db3127e7f389" prot="public" virt="non-virtual"><scope>tk::PreemptGuard</scope><name>PreemptGuard</name></member>
  87. <member refid="classtk_1_1_preempt_guard_1a329ea4d806861d9455168aeb01f41f86" prot="public" virt="non-virtual"><scope>tk::PreemptGuard</scope><name>~PreemptGuard</name></member>
  88. </listofallmembers>
  89. </compounddef>
  90. </doxygen>