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:
parent
6bd28132ed
commit
1504f2836e
2 changed files with 12 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* 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();
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
#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
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* 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
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue