add threaddata

This commit is contained in:
rsc 2005-03-18 18:56:17 +00:00
parent 670dd11a8a
commit 8dd8a81f71
2 changed files with 7 additions and 0 deletions

View file

@ -327,6 +327,12 @@ procdata(void)
return &proc()->udata; return &proc()->udata;
} }
void**
threaddata(void)
{
return &proc()->thread->udata;
}
extern Jmp *(*_notejmpbuf)(void); extern Jmp *(*_notejmpbuf)(void);
static Jmp* static Jmp*
threadnotejmp(void) threadnotejmp(void)

View file

@ -70,6 +70,7 @@ struct _Thread
Proc *proc; Proc *proc;
char name[256]; char name[256];
char state[256]; char state[256];
void *udata;
}; };
struct _Procrendez struct _Procrendez