kosmos/source/firmware/kernel/include/thread.h
2016-07-28 21:02:54 +02:00

23 lines
391 B
C

/*
* thread.h
*
* Created on: Apr 13, 2015
* Author: tkl
*/
#ifndef THREAD_H_
#define THREAD_H_
#define MAX_THREAD_COUNT 32
struct thread_list {
unsigned int count; //<! Number of elements in list
struct thread_context *list[MAX_THREAD_COUNT];
};
void thread_init(void);
void thread_switch_context(void);
void blocking_read_wakeup(const void *src);
#endif /* THREAD_H_ */