基于C++ Coroutines提案 ‘Stackless Resumable Functions’编写的协程库
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemGroup Label="ProjectConfigurations">
  4. <ProjectConfiguration Include="Debug|Win32">
  5. <Configuration>Debug</Configuration>
  6. <Platform>Win32</Platform>
  7. </ProjectConfiguration>
  8. <ProjectConfiguration Include="Release|Win32">
  9. <Configuration>Release</Configuration>
  10. <Platform>Win32</Platform>
  11. </ProjectConfiguration>
  12. <ProjectConfiguration Include="Debug|x64">
  13. <Configuration>Debug</Configuration>
  14. <Platform>x64</Platform>
  15. </ProjectConfiguration>
  16. <ProjectConfiguration Include="Release|x64">
  17. <Configuration>Release</Configuration>
  18. <Platform>x64</Platform>
  19. </ProjectConfiguration>
  20. </ItemGroup>
  21. <PropertyGroup Label="Globals">
  22. <VCProjectVersion>15.0</VCProjectVersion>
  23. <ProjectGuid>{C1D4A6BD-592F-4E48-8178-7C87219BF80E}</ProjectGuid>
  24. <Keyword>Win32Proj</Keyword>
  25. <RootNamespace>librf</RootNamespace>
  26. <WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
  27. </PropertyGroup>
  28. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  29. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
  30. <ConfigurationType>Application</ConfigurationType>
  31. <UseDebugLibraries>true</UseDebugLibraries>
  32. <PlatformToolset>v141</PlatformToolset>
  33. <CharacterSet>NotSet</CharacterSet>
  34. </PropertyGroup>
  35. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
  36. <ConfigurationType>Application</ConfigurationType>
  37. <UseDebugLibraries>false</UseDebugLibraries>
  38. <PlatformToolset>v141</PlatformToolset>
  39. <WholeProgramOptimization>true</WholeProgramOptimization>
  40. <CharacterSet>NotSet</CharacterSet>
  41. </PropertyGroup>
  42. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  43. <ConfigurationType>Application</ConfigurationType>
  44. <UseDebugLibraries>true</UseDebugLibraries>
  45. <PlatformToolset>v141</PlatformToolset>
  46. <CharacterSet>NotSet</CharacterSet>
  47. </PropertyGroup>
  48. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  49. <ConfigurationType>Application</ConfigurationType>
  50. <UseDebugLibraries>false</UseDebugLibraries>
  51. <PlatformToolset>v141</PlatformToolset>
  52. <WholeProgramOptimization>true</WholeProgramOptimization>
  53. <CharacterSet>NotSet</CharacterSet>
  54. </PropertyGroup>
  55. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  56. <ImportGroup Label="ExtensionSettings">
  57. </ImportGroup>
  58. <ImportGroup Label="Shared">
  59. </ImportGroup>
  60. <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  61. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  62. </ImportGroup>
  63. <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  64. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  65. </ImportGroup>
  66. <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  67. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  68. </ImportGroup>
  69. <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  70. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  71. </ImportGroup>
  72. <PropertyGroup Label="UserMacros" />
  73. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  74. <LinkIncremental>true</LinkIncremental>
  75. </PropertyGroup>
  76. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  77. <LinkIncremental>true</LinkIncremental>
  78. </PropertyGroup>
  79. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  80. <LinkIncremental>false</LinkIncremental>
  81. </PropertyGroup>
  82. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  83. <LinkIncremental>false</LinkIncremental>
  84. <CodeAnalysisRuleSet>NativeRecommendedRules.ruleset</CodeAnalysisRuleSet>
  85. <RunCodeAnalysis>false</RunCodeAnalysis>
  86. </PropertyGroup>
  87. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  88. <ClCompile>
  89. <WarningLevel>Level3</WarningLevel>
  90. <Optimization>Disabled</Optimization>
  91. <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;ASIO_STANDALONE;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  92. <SDLCheck>true</SDLCheck>
  93. <AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  94. <AdditionalOptions>/await</AdditionalOptions>
  95. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  96. <LanguageStandard>stdcpp17</LanguageStandard>
  97. </ClCompile>
  98. <Link>
  99. <SubSystem>Console</SubSystem>
  100. <GenerateDebugInformation>true</GenerateDebugInformation>
  101. </Link>
  102. </ItemDefinitionGroup>
  103. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  104. <ClCompile>
  105. <WarningLevel>Level3</WarningLevel>
  106. <Optimization>Disabled</Optimization>
  107. <PreprocessorDefinitions>_DEBUG;_CONSOLE;ASIO_STANDALONE;RESUMEF_DEBUG_COUNTER=1;RESUMEF_ENABLE_MULT_SCHEDULER=1;RESUMEF_USE_BOOST_ANY=0;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  108. <SDLCheck>true</SDLCheck>
  109. <AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  110. <AdditionalOptions>/await</AdditionalOptions>
  111. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  112. <LanguageStandard>stdcpp17</LanguageStandard>
  113. <MinimalRebuild />
  114. <CLanguageStandard>c11</CLanguageStandard>
  115. <CppLanguageStandard>c++1y</CppLanguageStandard>
  116. <DisableSpecificWarnings>4834</DisableSpecificWarnings>
  117. </ClCompile>
  118. <Link>
  119. <SubSystem>Console</SubSystem>
  120. <GenerateDebugInformation>true</GenerateDebugInformation>
  121. </Link>
  122. </ItemDefinitionGroup>
  123. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  124. <ClCompile>
  125. <WarningLevel>Level3</WarningLevel>
  126. <Optimization>Full</Optimization>
  127. <FunctionLevelLinking>true</FunctionLevelLinking>
  128. <IntrinsicFunctions>true</IntrinsicFunctions>
  129. <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;ASIO_STANDALONE;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  130. <SDLCheck>
  131. </SDLCheck>
  132. <AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  133. <AdditionalOptions>/await</AdditionalOptions>
  134. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  135. <LanguageStandard>stdcpp17</LanguageStandard>
  136. <BufferSecurityCheck>false</BufferSecurityCheck>
  137. <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
  138. <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
  139. <StringPooling>true</StringPooling>
  140. </ClCompile>
  141. <Link>
  142. <SubSystem>Console</SubSystem>
  143. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  144. <OptimizeReferences>true</OptimizeReferences>
  145. <GenerateDebugInformation>true</GenerateDebugInformation>
  146. <Profile>
  147. </Profile>
  148. </Link>
  149. </ItemDefinitionGroup>
  150. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  151. <ClCompile>
  152. <WarningLevel>Level4</WarningLevel>
  153. <Optimization>MaxSpeed</Optimization>
  154. <FunctionLevelLinking>true</FunctionLevelLinking>
  155. <IntrinsicFunctions>true</IntrinsicFunctions>
  156. <PreprocessorDefinitions>NDEBUG;_CONSOLE;ASIO_STANDALONE;RESUMEF_ENABLE_MULT_SCHEDULER=1;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  157. <AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  158. <AdditionalOptions>/await</AdditionalOptions>
  159. <ExceptionHandling>Sync</ExceptionHandling>
  160. <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
  161. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  162. <OmitFramePointers>true</OmitFramePointers>
  163. <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
  164. <StringPooling>true</StringPooling>
  165. <LanguageStandard>stdcpp17</LanguageStandard>
  166. <BufferSecurityCheck>false</BufferSecurityCheck>
  167. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  168. <SDLCheck>
  169. </SDLCheck>
  170. <EnablePREfast>false</EnablePREfast>
  171. </ClCompile>
  172. <Link>
  173. <SubSystem>Console</SubSystem>
  174. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  175. <OptimizeReferences>true</OptimizeReferences>
  176. <GenerateDebugInformation>true</GenerateDebugInformation>
  177. <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
  178. <Profile>
  179. </Profile>
  180. </Link>
  181. </ItemDefinitionGroup>
  182. <ItemGroup>
  183. <ClCompile Include="..\benchmark\benchmark_asio_echo.cpp" />
  184. <ClCompile Include="..\benchmark\benchmark_async_mem.cpp" />
  185. <ClCompile Include="..\benchmark\benchmark_channel_passing_next.cpp" />
  186. <ClCompile Include="..\librf\src\event.cpp" />
  187. <ClCompile Include="..\librf\src\mutex.cpp" />
  188. <ClCompile Include="..\librf\src\rf_task.cpp" />
  189. <ClCompile Include="..\librf\src\scheduler.cpp" />
  190. <ClCompile Include="..\librf\src\sleep.cpp" />
  191. <ClCompile Include="..\librf\src\state.cpp" />
  192. <ClCompile Include="..\librf\src\timer.cpp" />
  193. <ClCompile Include="..\librf\src\when.cpp" />
  194. <ClCompile Include="..\tutorial\test_async_cb.cpp" />
  195. <ClCompile Include="..\tutorial\test_async_channel.cpp" />
  196. <ClCompile Include="..\tutorial\test_async_channel_mult_thread.cpp" />
  197. <ClCompile Include="..\tutorial\test_async_dynamic_go.cpp" />
  198. <ClCompile Include="..\tutorial\test_async_event.cpp" />
  199. <ClCompile Include="..\tutorial\test_async_event_timeout.cpp" />
  200. <ClCompile Include="..\tutorial\test_async_exception.cpp" />
  201. <ClCompile Include="..\tutorial\test_async_modern_cb.cpp" />
  202. <ClCompile Include="..\tutorial\test_async_multi_thread.cpp" />
  203. <ClCompile Include="..\tutorial\test_async_mutex.cpp" />
  204. <ClCompile Include="..\tutorial\test_async_resumable.cpp" />
  205. <ClCompile Include="..\tutorial\test_async_routine.cpp" />
  206. <ClCompile Include="..\tutorial\test_async_sleep.cpp" />
  207. <ClCompile Include="..\tutorial\test_async_suspend_always.cpp" />
  208. <ClCompile Include="..\tutorial\test_async_timer.cpp" />
  209. <ClCompile Include="..\tutorial\test_async_when_all.cpp" />
  210. <ClCompile Include="..\tutorial\test_async_yield_return.cpp" />
  211. <ClCompile Include="librf.cpp">
  212. <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Default</BasicRuntimeChecks>
  213. <BufferSecurityCheck Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</BufferSecurityCheck>
  214. <SDLCheck Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</SDLCheck>
  215. </ClCompile>
  216. </ItemGroup>
  217. <ItemGroup>
  218. <ClInclude Include="..\librf\librf.h" />
  219. <ClInclude Include="..\librf\src\asio_task.h" />
  220. <ClInclude Include="..\librf\src\awaitable.h" />
  221. <ClInclude Include="..\librf\src\channel.h" />
  222. <ClInclude Include="..\librf\src\counted_ptr.h" />
  223. <ClInclude Include="..\librf\src\def.h" />
  224. <ClInclude Include="..\librf\src\event.h" />
  225. <ClInclude Include="..\librf\src\future.h" />
  226. <ClInclude Include="..\librf\src\generator.h" />
  227. <ClInclude Include="..\librf\src\promise.h" />
  228. <ClInclude Include="..\librf\src\task_list.h" />
  229. <ClInclude Include="..\librf\src\mutex.h" />
  230. <ClInclude Include="..\librf\src\rf_task.h" />
  231. <ClInclude Include="..\librf\src\scheduler.h" />
  232. <ClInclude Include="..\librf\src\sleep.h" />
  233. <ClInclude Include="..\librf\src\spinlock.h" />
  234. <ClInclude Include="..\librf\src\state.h" />
  235. <ClInclude Include="..\librf\src\timer.h" />
  236. <ClInclude Include="..\librf\src\unix\coroutine.h" />
  237. <ClInclude Include="..\librf\src\utils.h" />
  238. <ClInclude Include="..\librf\src\when.h" />
  239. <ClInclude Include="..\librf\src\_awaker.h" />
  240. </ItemGroup>
  241. <ItemGroup>
  242. <None Include="..\librf\src\asio_task_1.10.0.inl" />
  243. <None Include="..\librf\src\asio_task_1.12.0.inl" />
  244. <None Include="..\librf\src\exception.inl" />
  245. <None Include="..\librf\src\promise.inl" />
  246. <None Include="..\librf\src\state.inl" />
  247. <None Include="..\librf\src\type_traits.inl" />
  248. <None Include="..\README.md" />
  249. </ItemGroup>
  250. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  251. <ImportGroup Label="ExtensionTargets">
  252. </ImportGroup>
  253. </Project>