forked from haraldwolff/avr-fw-modules
13 lines
197 B
C
13 lines
197 B
C
|
#include <hwo/threads.h>
|
||
|
|
||
|
void thread_starter(void)
|
||
|
{
|
||
|
if (current_thread()->start)
|
||
|
current_thread()->start( current_thread()->arg );
|
||
|
|
||
|
thread_kill(current_thread());
|
||
|
|
||
|
while (1)
|
||
|
yield();
|
||
|
};
|