test fiber_tbox on windows

This commit is contained in:
郑树新 2022-02-24 23:03:10 +08:00
parent ec1d5055e7
commit 1921afab07
2 changed files with 42 additions and 0 deletions

View File

@ -139,6 +139,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "wizard_demo", "wizard_demo"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "httpd_proxy", "app\wizard_demo\httpd_proxy\httpd_proxy_vc2019.vcxproj", "{58FE3581-C997-4BD5-9AC6-AEEB54A43D2C}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fiber_tbox", "lib_fiber\samples\fiber_tbox\fiber_tbox.vcxproj", "{92668907-1B34-4B74-98A2-5849FDE67B34}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Mixed Platforms = Debug|Mixed Platforms
@ -689,6 +691,36 @@ Global
{58FE3581-C997-4BD5-9AC6-AEEB54A43D2C}.Template|Win32.Build.0 = Debug|Win32
{58FE3581-C997-4BD5-9AC6-AEEB54A43D2C}.Template|x64.ActiveCfg = Debug|x64
{58FE3581-C997-4BD5-9AC6-AEEB54A43D2C}.Template|x64.Build.0 = Debug|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|Win32.ActiveCfg = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|Win32.Build.0 = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|x64.ActiveCfg = Debug|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Debug|x64.Build.0 = Debug|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|Mixed Platforms.ActiveCfg = DebugDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|Mixed Platforms.Build.0 = DebugDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|Win32.ActiveCfg = DebugDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|Win32.Build.0 = DebugDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|x64.ActiveCfg = DebugDll|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.DebugDll|x64.Build.0 = DebugDll|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|Mixed Platforms.Build.0 = Release|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|Win32.ActiveCfg = Release|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|Win32.Build.0 = Release|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|x64.ActiveCfg = Release|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Release|x64.Build.0 = Release|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|Mixed Platforms.ActiveCfg = ReleaseDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|Mixed Platforms.Build.0 = ReleaseDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|Win32.ActiveCfg = ReleaseDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|Win32.Build.0 = ReleaseDll|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|x64.ActiveCfg = ReleaseDll|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Releasedll|x64.Build.0 = ReleaseDll|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|Mixed Platforms.ActiveCfg = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|Mixed Platforms.Build.0 = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|Win32.ActiveCfg = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|Win32.Build.0 = Debug|Win32
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|x64.ActiveCfg = Debug|x64
{92668907-1B34-4B74-98A2-5849FDE67B34}.Template|x64.Build.0 = Debug|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -721,6 +753,7 @@ Global
{4A56E6AE-448C-4D98-AB7F-3C077ECABE24} = {5E5307B3-44A8-4E49-A91D-999EF818C486}
{FF701178-83CC-4992-B3FA-114073E7A33A} = {30B69273-9D47-4AD6-B1C5-CF362F9C6D80}
{58FE3581-C997-4BD5-9AC6-AEEB54A43D2C} = {FF701178-83CC-4992-B3FA-114073E7A33A}
{92668907-1B34-4B74-98A2-5849FDE67B34} = {FD628E34-FBB8-4C60-8176-B770EC631CD9}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {40FA3A5B-123F-4EC0-9EEB-8A9C17BF573B}

View File

@ -42,6 +42,8 @@ private:
__producing++;
tbox_.push(o);
}
tbox_.push(NULL);
delete this;
}
};
@ -98,9 +100,16 @@ private:
while (true) {
myobj* o = tbox_.pop(timeout_);
if (!o) {
if (timeout_ < 0) {
printf("Over now!\r\n");
break;
}
continue;
}
if (__consuming < 5) {
o->test();
}
delete o;
if (++__consuming % 100000 != 0) {