kosmos/source/firmware/kernel/include/thread.h

23 lines
391 B
C
Raw Normal View History

2016-07-28 19:02:54 +00:00
/*
* 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_ */