avr-fw-modules/core/src/thread_starter.c

13 lines
197 B
C
Raw Normal View History

2017-09-27 13:25:39 +02:00
#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();
};