add threaddata
This commit is contained in:
parent
670dd11a8a
commit
8dd8a81f71
2 changed files with 7 additions and 0 deletions
|
|
@ -327,6 +327,12 @@ procdata(void)
|
|||
return &proc()->udata;
|
||||
}
|
||||
|
||||
void**
|
||||
threaddata(void)
|
||||
{
|
||||
return &proc()->thread->udata;
|
||||
}
|
||||
|
||||
extern Jmp *(*_notejmpbuf)(void);
|
||||
static Jmp*
|
||||
threadnotejmp(void)
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ struct _Thread
|
|||
Proc *proc;
|
||||
char name[256];
|
||||
char state[256];
|
||||
void *udata;
|
||||
};
|
||||
|
||||
struct _Procrendez
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue