From dd72eca7f48268ad93f83067c859e04eec91018e Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 22 Nov 2010 16:10:42 +0000 Subject: [PATCH] Remove the 'death' tasks from the demo as on Win2K and WinXP the behaviour of the TerminateThread() function is such that resources leak and eventually the 'death' tests will fail. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1163 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/WIN32-MSVC/WIN32.suo | Bin 54784 -> 54784 bytes Demo/WIN32-MSVC/WIN32.vcxproj | 2 +- Demo/WIN32-MSVC/WIN32.vcxproj.filters | 16 ++++++++-------- Demo/WIN32-MSVC/main.c | 10 ---------- 4 files changed, 9 insertions(+), 19 deletions(-) diff --git a/Demo/WIN32-MSVC/WIN32.suo b/Demo/WIN32-MSVC/WIN32.suo index a6a78775b5325202320169eb8b0390c67a30dbd4..84fd5718cbc17eef3ab1bdc3cc25356bff2183a9 100644 GIT binary patch delta 1691 zcmb7EVN6q36u$Spf*nGkfQq#gs8y&IN0p&yDGz9<&~92VM$srD1H@9a6vmj+2O5Il zaN{iMkA-MivTR{y>_*W|W8F-qQ!-}E%+xve!)3;0VMaISknUVoO^m;GU%s4o&i&qd z-#O>LBM*u4kof5ZffmC>VQyYNA;gTB4243=&`O8`L?NOG@iHP0u@YfNlpr{_l-qY* zMT2gUsw%fn3~cVXL`4jem8?yn5lozv9wr;Zmd7|U(O(pf<)DRNq;?(O;A)nKH!NXm zMJpk=DhGlq<6IlsEliwQ@-7eA(4gHH6bK*DN89Cs!co7jT{r^u6pw`b*noa7Xn$VPAtWx_;KOUz$| z$A*8rlcCby;|%|7V@eZgBsIiGQb`NhMw&=7*+Sgtt@}0#DFp0}T#)B%Q;W$hr;@sl z+|aadSf{@9s4o_NwkAT~?8USl&S~=dHM`YACC3*htTFc9-}oqD?(ob3VTuya+yYv$ z0*=%w)Pr{upL8~VU^x~g1g?4a_bx|9Lb3-7y_K{rOkV05pEBuU7Kxa6y542{`+dY{jB^${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{wXH-c0j*lGXcSgnE z?IvnWZ;c??)RVQ%6DvH{kNKq}ytIyzJa}@wG4dy;*~w;;U7RkVC3zVd?PpB6&M?QY zh5q8M>Ba=@9Twb`1^NBb7sXe3kVk1qOG%~D5h(%-kKcwVEi)kO!^V^u>s@+ed!9mQ z6CjKTRIC(vh(`p>KJJwBpbsV+i16o-E!x9{M8~UhNJ2jq-uc*z4G)Yv)~)o z(c85XDo8aF#6c0FOTwYbD%{IVM_!L%QEK2(UnPW^9;$G>FdYS}O|-PdNARaDoj!lZ zz$5hen2P--)Z2EEVB>%h;%O1Lveocq3)Fcoo%lP3zGIl{$tA^6!M94<`d6ANYt5jlV@m5G$dp z7-%#g#jdBrm)dyR68chw^~(u#?Al)>aD|}xf)kI%?uI7E2{y})V)&91_JIlnr(OQU zDAr60o@6G_(itlWeY-@kbh8!XHxEJj`e{@?2{)2YV4u$;=Wu! - + diff --git a/Demo/WIN32-MSVC/WIN32.vcxproj.filters b/Demo/WIN32-MSVC/WIN32.vcxproj.filters index 3d075c58a..1a088b2ed 100644 --- a/Demo/WIN32-MSVC/WIN32.vcxproj.filters +++ b/Demo/WIN32-MSVC/WIN32.vcxproj.filters @@ -1,10 +1,6 @@  - - {19ff1a34-36de-4c48-9d10-3fb1fa0d1fa4} - h;hpp;hxx;hm;inl - {38712199-cebf-4124-bf15-398f7c3419ea} ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe @@ -32,6 +28,10 @@ {143cf5a3-f134-4439-9f71-a201ae23b44b} + + {19ff1a34-36de-4c48-9d10-3fb1fa0d1fa4} + h;hpp;hxx;hm;inl + @@ -81,11 +81,8 @@ - - Header Files - - Header Files + Configuration Files FreeRTOS Source\Include @@ -111,5 +108,8 @@ FreeRTOS Source\Include + + FreeRTOS Source\Include + \ No newline at end of file diff --git a/Demo/WIN32-MSVC/main.c b/Demo/WIN32-MSVC/main.c index a14753696..e0c63e274 100644 --- a/Demo/WIN32-MSVC/main.c +++ b/Demo/WIN32-MSVC/main.c @@ -96,7 +96,6 @@ #include "QPeek.h" #include "recmutex.h" #include "flop.h" -#include "death.h" /* Priorities at which the tasks are created. */ #define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) @@ -130,11 +129,6 @@ int main( void ) vStartMathTasks( mainFLOP_TASK_PRIORITY ); vStartRecursiveMutexTasks(); - /* The suicide tasks must be created last as they need to know how many - tasks were running prior to their creation in order to ascertain whether - or not the correct/expected number of tasks are running at any given time. */ - vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY ); - /* Start the scheduler itself. */ vTaskStartScheduler(); @@ -190,10 +184,6 @@ char *pcStatusMessage = "OK"; { pcStatusMessage = "Error: Flop"; } - else if( xIsCreateTaskStillRunning() != pdPASS ) - { - pcStatusMessage = "Error: Create"; - } else if( xAreRecursiveMutexTasksStillRunning() != pdTRUE ) { pcStatusMessage = "Error: RecMutex"; -- 2.39.5