initial commit
This commit is contained in:
22
source/firmware/kernel/include/thread.h
Normal file
22
source/firmware/kernel/include/thread.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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_ */
|
||||
Reference in New Issue
Block a user