forked from len0rd/rockbox
Added stack overflow check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1358 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
76b4096be7
commit
09153dd82a
2 changed files with 47 additions and 5 deletions
|
|
@ -20,9 +20,11 @@
|
|||
#define THREAD_H
|
||||
|
||||
#define MAXTHREADS 16
|
||||
#define DEFAULT_STACK_SIZE 0x800 /* Bytes */
|
||||
|
||||
int create_thread(void* function, void* stack, int stack_size);
|
||||
int create_thread(void* function, void* stack, int stack_size, char *name);
|
||||
void switch_thread(void);
|
||||
void init_threads(void);
|
||||
int thread_stack_usage(int threadnum);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue