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

16 lines
216 B
C
Raw Normal View History

2017-09-27 13:25:39 +02:00
#include <hwo/threads.h>
#include <stdlib.h>
void thread_wake(THREAD* thread)
{
ATOMIC
if (thread == NULL)
thread = current_thread();
thread->wait = 0;
thread->timeout = 0;
schedule_thread( thread );
};