From 0cd5506a434fcc63361f8f55a5c9026e6011fd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=A0=91=E6=96=B0?= Date: Sat, 14 Sep 2024 23:16:21 +0800 Subject: [PATCH] Test gui fiber demo --- lib_fiber/c/libfiber_vc2019.vcxproj | 2 +- lib_fiber/samples-gui/WinFiber/WinFiberDlg.cpp | 1 + lib_fiber/samples-gui/WinFiber/WinFiber_vc2019.vcxproj | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_fiber/c/libfiber_vc2019.vcxproj b/lib_fiber/c/libfiber_vc2019.vcxproj index 67da4b215..1556457bc 100644 --- a/lib_fiber/c/libfiber_vc2019.vcxproj +++ b/lib_fiber/c/libfiber_vc2019.vcxproj @@ -428,4 +428,4 @@ - + \ No newline at end of file diff --git a/lib_fiber/samples-gui/WinFiber/WinFiberDlg.cpp b/lib_fiber/samples-gui/WinFiber/WinFiberDlg.cpp index 037d2500c..240a2dba1 100644 --- a/lib_fiber/samples-gui/WinFiber/WinFiberDlg.cpp +++ b/lib_fiber/samples-gui/WinFiber/WinFiberDlg.cpp @@ -239,6 +239,7 @@ void CWinFiberDlg::OnBnClickedListen() printf("listen %s ok\r\n", m_listenAddr.c_str()); m_fiberListen = new CFiberListener(m_listen); m_fiberListen->start(); + printf("listen fiber stopped!\r\n"); } else if (acl::fiber::scheduled()) { GetDlgItem(IDC_LISTEN)->EnableWindow(FALSE); m_fiberListen->kill(); diff --git a/lib_fiber/samples-gui/WinFiber/WinFiber_vc2019.vcxproj b/lib_fiber/samples-gui/WinFiber/WinFiber_vc2019.vcxproj index efd3783c6..1d5e3313e 100644 --- a/lib_fiber/samples-gui/WinFiber/WinFiber_vc2019.vcxproj +++ b/lib_fiber/samples-gui/WinFiber/WinFiber_vc2019.vcxproj @@ -222,6 +222,7 @@ _WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) pch.h ..\..\..\lib_acl_cpp\include;..\..\..\lib_acl\include;..\..\..\lib_fiber\c\include;..\..\..\lib_fiber\cpp\include + /Zc:__cplusplus %(AdditionalOptions) Windows @@ -335,6 +336,7 @@ _WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) pch.h ..\..\..\lib_acl_cpp\include;..\..\..\lib_acl\include;..\..\..\lib_fiber\c\include;..\..\..\lib_fiber\cpp\include + /Zc:__cplusplus %(AdditionalOptions) Windows