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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue