aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-19 12:22:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-19 12:22:31 +0000
commit84e044f176cee7c6946b24c36c90f63534b5b369 (patch)
treee8ca42b24b64273a7d1d6aa35f7aae07b1d6d39a /test
parent4245ba7659ecdaadd47b0cdd61f3255b83f87d4f (diff)
downloadChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.tar.gz
ChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.tar.bz2
ChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.zip
Renamed Thread to thread_t.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5995 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/test.c2
-rw-r--r--test/test.h2
-rw-r--r--test/testbmk.c12
-rw-r--r--test/testdyn.c6
-rw-r--r--test/testevt.c2
-rw-r--r--test/testmsg.c2
6 files changed, 13 insertions, 13 deletions
diff --git a/test/test.c b/test/test.c
index b7c92ceaf..86e53499b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -70,7 +70,7 @@ union test_buffers test;
/*
* Pointers to the spawned threads.
*/
-Thread *threads[MAX_THREADS];
+thread_t *threads[MAX_THREADS];
/*
* Pointers to the working areas.
diff --git a/test/test.h b/test/test.h
index fbdfa27f0..136631d8f 100644
--- a/test/test.h
+++ b/test/test.h
@@ -162,7 +162,7 @@ extern "C" {
}
#if !defined(__DOXYGEN__)
-extern Thread *threads[MAX_THREADS];
+extern thread_t *threads[MAX_THREADS];
extern union test_buffers test;
extern void * ROMCONST wa[];
extern bool_t test_timer_done;
diff --git a/test/testbmk.c b/test/testbmk.c
index 1ed9f1409..e2f0df833 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -62,7 +62,7 @@ static Mutex mtx1;
#endif
static msg_t thread1(void *p) {
- Thread *tp;
+ thread_t *tp;
msg_t msg;
(void)p;
@@ -77,7 +77,7 @@ static msg_t thread1(void *p) {
#ifdef __GNUC__
__attribute__((noinline))
#endif
-static unsigned int msg_loop_test(Thread *tp) {
+static unsigned int msg_loop_test(thread_t *tp) {
uint32_t n = 0;
test_wait_tick();
@@ -202,7 +202,7 @@ ROMCONST struct testcase testbmk3 = {
msg_t thread4(void *p) {
msg_t msg;
- Thread *self = chThdSelf();
+ thread_t *self = chThdSelf();
(void)p;
chSysLock();
@@ -215,7 +215,7 @@ msg_t thread4(void *p) {
}
static void bmk4_execute(void) {
- Thread *tp;
+ thread_t *tp;
uint32_t n;
tp = threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+1, thread4, NULL);
@@ -635,12 +635,12 @@ static void bmk13_execute(void) {
test_print("--- System: ");
test_printn(sizeof(ready_list_t) + sizeof(VTList) +
PORT_IDLE_THREAD_STACK_SIZE +
- (sizeof(Thread) + sizeof(struct intctx) +
+ (sizeof(thread_t) + sizeof(struct intctx) +
sizeof(struct extctx) +
PORT_INT_REQUIRED_STACK) * 2);
test_println(" bytes");
test_print("--- Thread: ");
- test_printn(sizeof(Thread));
+ test_printn(sizeof(thread_t));
test_println(" bytes");
test_print("--- Timer : ");
test_printn(sizeof(VirtualTimer));
diff --git a/test/testdyn.c b/test/testdyn.c
index 8e54c81a1..ebfb00a4b 100644
--- a/test/testdyn.c
+++ b/test/testdyn.c
@@ -188,8 +188,8 @@ ROMCONST struct testcase testdyn2 = {
* coverage.
*/
-static bool_t regfind(Thread *tp) {
- Thread *ftp;
+static bool_t regfind(thread_t *tp) {
+ thread_t *ftp;
bool_t found = FALSE;
ftp = chRegFirstThread();
@@ -206,7 +206,7 @@ static void dyn3_setup(void) {
}
static void dyn3_execute(void) {
- Thread *tp;
+ thread_t *tp;
tprio_t prio = chThdGetPriority();
/* Testing references increase/decrease and final detach.*/
diff --git a/test/testevt.c b/test/testevt.c
index d1291c406..5daa7f1e3 100644
--- a/test/testevt.c
+++ b/test/testevt.c
@@ -133,7 +133,7 @@ static void evt2_setup(void) {
static msg_t thread1(void *p) {
chThdSleepMilliseconds(50);
- chEvtSignal((Thread *)p, 1);
+ chEvtSignal((thread_t *)p, 1);
return 0;
}
diff --git a/test/testmsg.c b/test/testmsg.c
index 3ffaa6bf7..7a1ef1175 100644
--- a/test/testmsg.c
+++ b/test/testmsg.c
@@ -65,7 +65,7 @@ static msg_t thread(void *p) {
}
static void msg1_execute(void) {
- Thread *tp;
+ thread_t *tp;
msg_t msg;
/*