1
0
Fork 0
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:
Linus Nielsen Feltzing 2002-07-15 22:21:18 +00:00
parent 76b4096be7
commit 09153dd82a
2 changed files with 47 additions and 5 deletions

View file

@ -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