TD2 II.4 Call exit if there is no space avaible on Stack

Put Thread in sleep mode was a bad idea beause of synch (barrier for example)
This commit is contained in:
Yorick Barbanneau 2021-11-19 14:12:49 +01:00
parent 4da093ca38
commit 3877e32b59
3 changed files with 22 additions and 10 deletions

View file

@ -6,6 +6,7 @@
typedef struct {
int f;
int arg;
int stackAddr;
} ThreadArgs_t;
extern int do_ThreadCreate(int f, int arg);