shuffle to allow use of execchan in non-pthreads impls
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <ucontext.h>
|
||||
|
||||
typedef struct Context Context;
|
||||
typedef struct Execjob Execjob;
|
||||
typedef struct Proc Proc;
|
||||
typedef struct _Procrendez _Procrendez;
|
||||
|
||||
@@ -20,6 +21,14 @@ struct Context
|
||||
ucontext_t uc;
|
||||
};
|
||||
|
||||
struct Execjob
|
||||
{
|
||||
int *fd;
|
||||
char *cmd;
|
||||
char **argv;
|
||||
Channel *c;
|
||||
};
|
||||
|
||||
struct _Thread
|
||||
{
|
||||
_Thread *next;
|
||||
@@ -88,3 +97,5 @@ extern void _threadsetproc(Proc*);
|
||||
extern int _threadlock(Lock*, int, ulong);
|
||||
extern void _threadunlock(Lock*, ulong);
|
||||
extern void _pthreadinit(void);
|
||||
extern int _threadspawn(int*, char*, char**);
|
||||
extern int _runthreadspawn(int*, char*, char**);
|
||||
|
||||
Reference in New Issue
Block a user