comparison packages/kernel/current/tests/thread0.cxx @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents 3111d98ba7b3
children c38311975d4f
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
20 // 20 //
21 // The Original Code is eCos - Embedded Cygnus Operating System, released 21 // The Original Code is eCos - Embedded Cygnus Operating System, released
22 // September 30, 1998. 22 // September 30, 1998.
23 // 23 //
24 // The Initial Developer of the Original Code is Cygnus. Portions created 24 // The Initial Developer of the Original Code is Cygnus. Portions created
25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
26 // ------------------------------------------- 26 // -------------------------------------------
27 // 27 //
28 //####COPYRIGHTEND#### 28 //####COPYRIGHTEND####
29 //========================================================================== 29 //==========================================================================
30 //#####DESCRIPTIONBEGIN#### 30 //#####DESCRIPTIONBEGIN####
46 46
47 #include <cyg/kernel/thread.inl> 47 #include <cyg/kernel/thread.inl>
48 48
49 #include "testaux.hxx" 49 #include "testaux.hxx"
50 50
51 #define STACKSIZE 4096 51 #define STACKSIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
52 52
53 static char stack[STACKSIZE]; 53 static char stack[STACKSIZE];
54 54
55 static cyg_thread_entry entry; 55 static cyg_thread_entry entry;
56 56
69 69
70 Cyg_Thread t1( entry, (CYG_ADDRWORD)&t0, STACKSIZE ); 70 Cyg_Thread t1( entry, (CYG_ADDRWORD)&t0, STACKSIZE );
71 71
72 CYG_ASSERTCLASS(&t1, "error"); 72 CYG_ASSERTCLASS(&t1, "error");
73 #endif 73 #endif
74 Cyg_Thread t2( entry, (CYG_ADDRWORD)p, STACKSIZE, (CYG_ADDRESS)stack ); 74 Cyg_Thread t2( CYG_SCHED_DEFAULT_INFO,
75 entry, (CYG_ADDRWORD)p,
76 "thread t2",
77 (CYG_ADDRESS)stack, STACKSIZE );
75 78
76 CYG_ASSERTCLASS(&t2, "error"); 79 CYG_ASSERTCLASS(&t2, "error");
77 80
78 return true; 81 return true;
79 } 82 }