From 1504f2836e62c444fa537ebd98afca349d092dd8 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 26 Sep 2006 20:59:51 +0000 Subject: [PATCH] Commented out unused functionality: the ability to create a process running a thread was never used. With the new code, only running 'bare' threads is supported. If support for creating processes with a thread is needed, it may be reneabled later but currently there doesn't seem to be a need for it --- core/sys/mt.c | 8 +++++++- core/sys/mt.h | 10 +++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/core/sys/mt.c b/core/sys/mt.c index b9a087c11..bbe58f851 100644 --- a/core/sys/mt.c +++ b/core/sys/mt.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: mt.c,v 1.2 2006/09/01 22:56:47 adamdunkels Exp $ + * $Id: mt.c,v 1.3 2006/09/26 20:59:51 adamdunkels Exp $ */ /** @@ -100,6 +100,7 @@ mt_exit(void) mtarch_yield(); } /*--------------------------------------------------------------------------*/ +#if 0 void mt_exec_event(struct mt_thread *thread, process_event_t ev, process_data_t data) @@ -115,6 +116,7 @@ mt_exec_event(struct mt_thread *thread, process_event_t ev, mtarch_exec(&thread->thread); } } +#endif /*--------------------------------------------------------------------------*/ void mt_yield(void) @@ -130,6 +132,7 @@ mt_yield(void) } /*--------------------------------------------------------------------------*/ +#if 0 void mt_post(struct process *p, process_event_t ev, process_data_t data) @@ -142,7 +145,9 @@ mt_post(struct process *p, process_event_t ev, /* Turn preemption on again. */ mtarch_pstart(); } +#endif /*--------------------------------------------------------------------------*/ +#if 0 void mt_wait(process_event_t *ev, process_data_t *data) { @@ -165,6 +170,7 @@ mt_peek(process_event_t *ev, process_data_t *data) current = NULL; mtarch_yield(); } +#endif /*--------------------------------------------------------------------------*/ #if 0 void diff --git a/core/sys/mt.h b/core/sys/mt.h index c3a71d63c..dbadde2eb 100644 --- a/core/sys/mt.h +++ b/core/sys/mt.h @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: mt.h,v 1.2 2006/09/01 22:56:47 adamdunkels Exp $ + * $Id: mt.h,v 1.3 2006/09/26 20:59:51 adamdunkels Exp $ */ /** \addtogroup sys @@ -235,8 +235,8 @@ void mt_exec(struct mt_thread *thread); * containing additonal information, or NULL if no additional * information is needed. */ -void mt_exec_event(struct mt_thread *thread, process_event_t s, - process_data_t data); +/*void mt_exec_event(struct mt_thread *thread, process_event_t s, + process_data_t data);*/ /** * Voluntarily give up the processor. @@ -263,7 +263,7 @@ void mt_yield(void); * with the signal. * */ -void mt_post(struct process *p, process_event_t ev, process_data_t data); +/*void mt_post(struct process *p, process_event_t ev, process_data_t data);*/ /** * Block and wait for an event to occur. @@ -281,7 +281,7 @@ void mt_post(struct process *p, process_event_t ev, process_data_t data); * the thread. * */ -void mt_wait(process_event_t *ev, process_data_t *data); +/*void mt_wait(process_event_t *ev, process_data_t *data);*/ /** * Exit a thread.