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

This commit is contained in:
adamdunkels 2006-09-26 20:59:51 +00:00
parent 6bd28132ed
commit 1504f2836e
2 changed files with 12 additions and 6 deletions

View File

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $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(); mtarch_yield();
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
#if 0
void void
mt_exec_event(struct mt_thread *thread, process_event_t ev, mt_exec_event(struct mt_thread *thread, process_event_t ev,
process_data_t data) process_data_t data)
@ -115,6 +116,7 @@ mt_exec_event(struct mt_thread *thread, process_event_t ev,
mtarch_exec(&thread->thread); mtarch_exec(&thread->thread);
} }
} }
#endif
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
void void
mt_yield(void) mt_yield(void)
@ -130,6 +132,7 @@ mt_yield(void)
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
#if 0
void void
mt_post(struct process *p, process_event_t ev, mt_post(struct process *p, process_event_t ev,
process_data_t data) process_data_t data)
@ -142,7 +145,9 @@ mt_post(struct process *p, process_event_t ev,
/* Turn preemption on again. */ /* Turn preemption on again. */
mtarch_pstart(); mtarch_pstart();
} }
#endif
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
#if 0
void void
mt_wait(process_event_t *ev, process_data_t *data) 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; current = NULL;
mtarch_yield(); mtarch_yield();
} }
#endif
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
#if 0 #if 0
void void

View File

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $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 /** \addtogroup sys
@ -235,8 +235,8 @@ void mt_exec(struct mt_thread *thread);
* containing additonal information, or NULL if no additional * containing additonal information, or NULL if no additional
* information is needed. * information is needed.
*/ */
void mt_exec_event(struct mt_thread *thread, process_event_t s, /*void mt_exec_event(struct mt_thread *thread, process_event_t s,
process_data_t data); process_data_t data);*/
/** /**
* Voluntarily give up the processor. * Voluntarily give up the processor.
@ -263,7 +263,7 @@ void mt_yield(void);
* with the signal. * 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. * 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. * 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. * Exit a thread.